Can't click push button #1859
-
Hello, I have an issue with clicking the button "push it!". i first had issue with the redirection, so i used sub_filter to redirect balises, (i know it's not optimal, but it works for everything except the push button :/ )
I am pretty sure there is an easier way to do it, but I'm not an expert, that's why i'm here .. I don't have this problem when i try to do it with location / { If anyone can help me, would be very helpful :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
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 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 pwpush.example.com;
# Proxy pass to the pwpush backend running on port 5100
location / {
proxy_pass http://10.0.0.25:5100;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
# Configuration for anotherapp.example.com
server {
listen 80;
server_name anotherapp.example.com;
# Proxy pass to the other application running on port 80
location / {
proxy_pass http://10.0.0.25:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
} If you still want to go the subfolder route, please post the output in the browser javascript console. I suspect there is a JS issue for the Push It! button. |
Beta Was this translation helpful? Give feedback.
-
Hello, and thanks for the very fast reply. Unfortunatly, I only have 1 Public IP, so i think it's not going to work ? so the only way i can split my multiples web apps is with using subfolders when i just load the page, i have this : It says that the ressources have been blocked because of a MIME Type When i click on push : XHR POST GET Seems like he is searching the css on http://192.168.X.X/assets/ I forgot to say that i first tried with changing the PWP__RELATIVE_ROOT variable, wich is a solution that works, but i loose the css using this solution, maybe this is a known isssue and easy to fix ? Thanks for your help |
Beta Was this translation helpful? Give feedback.
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":