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
Would it be as simple as honoring cgi's SCRIPT_NAME ? (it is forced to '' in http.py)
but in the case of proxy_pass, I think it is not a direct cgi call, and there is no easy way to trust some sort of HTTP header set by the proxy.
For use http proxy, I use nginx:
rewrite ^/supervisor$ /supervisor/ redirect;
location /supervisor/ {
auth_basic "Restricted Resource";
auth_basic_user_file /home/ivan/htpasswd;
....
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:9001/;
}
But some form posts redirect 301 to /, I fix it write in web.py
def get_server_url(self):
...
server_url += '/supervisor/'
return server_url
new options like
[inet_http_server]
port = 127.0.0.1:9001
path_info='/supervisor/'
or with change parse option :)
[inet_http_server]
port = 127.0.0.1:9001/supervisor/
What do you think about it, this is usefull?
The text was updated successfully, but these errors were encountered: