Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
howto:nginx [2022/01/17 07:01] – more formating ragnarok | howto:nginx [2022/01/17 07:18] (current) – add non root url example ragnarok | ||
---|---|---|---|
Line 57: | Line 57: | ||
| | ||
This will cause the fTelnet to timeout (regardless if you are using fTelnet proxy or not). | This will cause the fTelnet to timeout (regardless if you are using fTelnet proxy or not). | ||
+ | |||
+ | ===== Using synchronet on non-root url ===== | ||
+ | |||
+ | Example for run sbbs on /webbbs url | ||
+ | |||
+ | |||
+ | location ^~ /webbbs { | ||
+ | try_files $uri @app; | ||
+ | } | ||
+ | location @app { | ||
+ | proxy_set_header Host $host; | ||
+ | proxy_set_header X-Real-IP | ||
+ | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
+ | proxy_pass http:// | ||
+ | proxy_redirect off; | ||
+ | rewrite /webbbs(.*) /$1 break; | ||
+ | } | ||
+ | # api call seems to be absolute, so you must alias /api/ url's | ||
+ | location /api/ { | ||
+ | proxy_set_header X-Real-IP | ||
+ | proxy_set_header X-Forwarded-For $remote_addr; | ||
+ | proxy_set_header Host $host; | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | |||
+ | | ||
+ | |||
+ | |||
===== See Also ===== | ===== See Also ===== |