Revision cec3e584
Added by David Sorber almost 2 years ago
| configs/phalanx/apache/main.conf | ||
|---|---|---|
|
AuthDigestProvider file
|
||
|
AuthUserFile /home/dsorber/web_users
|
||
|
Require valid-user
|
||
|
ProxyPass http://192.168.8.6:9565/transmission
|
||
|
ProxyPassReverse http://192.168.8.6:9565/transmission
|
||
|
ProxyPass http://127.0.0.1:9565/transmission
|
||
|
ProxyPassReverse http://127.0.0.1:9565/transmission
|
||
|
</Location>
|
||
|
|
||
|
# --- ttyd -----------------------------------------------------
|
||
| ... | ... | |
|
RewriteEngine on
|
||
|
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
||
|
RewriteCond %{HTTP:Connection} upgrade [NC]
|
||
|
RewriteRule /terminal/?(.*) "ws://localhost:9772/$1" [P,L]
|
||
|
# ProxyPass /terminal http://localhost:9772/
|
||
|
# ProxyPassReverse /terminal http://localhost:9772/
|
||
|
ProxyPass http://localhost:9772/
|
||
|
ProxyPassReverse http://localhost:9772/
|
||
|
RewriteRule /terminal/?(.*) "ws://127.0.0.1:9772/$1" [P,L]
|
||
|
ProxyPass http://127.0.0.1:9772/
|
||
|
ProxyPassReverse http://127.0.0.1:9772/
|
||
|
ProxyPass ws://127.0.0.1:9772/
|
||
|
ProxyPassReverse ws://127.0.0.1:9772/
|
||
|
</Location>
|
||
|
|
||
|
</VirtualHost>
|
||
Correcting config so ttyd will work.