You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hardware: VPS bought online
YunoHost version: 11.2.3 (stable)
I have access to my server : Through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: app 1.0.2~ynh1
Description of my issue
I’ve a web application runs on Yunohost server. It uses port 3000 to serve.
When I try to connect my app\ browser says: Invalid Host header.
Let’s encrypt symbol shows as secure connection.
The problem is that you have caused the Host header to be included twice.
proxy_set_header Host $host;
include proxy_params;
Looking at the proxy_params file will show you that it was already set there. Setting it again causes the two values to be joined with a comma.
Inside that file you will find preset headers that will be used when you include that file. You do not need to repeat any of those lines in your own configuration.
ubuntu@vmtest-ubuntu2004:~$ cat /etc/nginx/proxy_params
proxy_set_header Host $http_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;
You can remove your own additional proxy_set_header Host $host; from the configuration.
The text was updated successfully, but these errors were encountered:
zcatav
changed the title
Redirect configures host header twice
Redirect configures host header second time
Aug 25, 2023
Hi,
FYI
The problem described and solved at https://forum.yunohost.org/t/redirect-app-configuration/26067
Describe the bug
Hardware: VPS bought online
YunoHost version: 11.2.3 (stable)
I have access to my server : Through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: app 1.0.2~ynh1
Description of my issue
I’ve a web application runs on Yunohost server. It uses port 3000 to serve.
When I try to connect my app\ browser says: Invalid Host header.
Let’s encrypt symbol shows as secure connection.
The problem is that you have caused the Host header to be included twice.
Looking at the proxy_params file will show you that it was already set there. Setting it again causes the two values to be joined with a comma.
Inside that file you will find preset headers that will be used when you include that file. You do not need to repeat any of those lines in your own configuration.
ubuntu@vmtest-ubuntu2004:~$ cat /etc/nginx/proxy_params
proxy_set_header Host $http_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;
You can remove your own additional proxy_set_header Host $host; from the configuration.
The text was updated successfully, but these errors were encountered: