huashengdun / webssh

:seedling: Web based ssh client
https://webssh.huashengdun.org/
MIT License
4.57k stars 1.3k forks source link

Can I add a subpath? #88

Closed vickllny closed 5 years ago

vickllny commented 5 years ago

Can I add a subpath? I want to add a subpath like /webssh and then reverse proxy through nginx, but I visited http://192.168.1.100/webssh and the all static resources reported 404, below is my nginx configuration.
location /webssh { proxy_pass http://192.168.91.111:8888/; proxy_set_header Host $host:$server_port; 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; } All static resource url prefixes are not /webssh what should I do?

huashengdun commented 5 years ago

location /webssh/

vickllny commented 5 years ago

It works. thx