Skip to content

Can't click push button #1859

Answered by pglombardo
c-informatique asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @c-informatique! I'll tell you the options and some history but tldr; it's better to use subdomains & multiple server blocks if possible. Running the application in a subfolder doesn't work well.

The application supports the environment variable PWP__RELATIVE_ROOT to run the application in a subfolder (docs). All links and forms will be created with the right paths. The problem in #905 points out that assets (images, files, JS) don't load correctly.

So my advice to hopefully save you the headache is to use Host Headers (aka subdomains). Here would be an example nginx config for "pwpush" and "anotherapp":

# Configuration for pwpush.example.com
server {
    listen 80;
    server_name pwp…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pglombardo
Comment options

You must be logged in to vote
3 replies
@pglombardo
Comment options

@c-informatique
Comment options

@pglombardo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Resolved The issue, question or bug has been resolved.
2 participants