mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
48 lines
1.4 KiB
ApacheConf
48 lines
1.4 KiB
ApacheConf
<IfModule mod_ssl.c>
|
|
<VirtualHost *.443>
|
|
ServerName {FQDN}
|
|
ServerAdmin {Admin Email}
|
|
|
|
#Forward once Websocket Connection has been upgraded.
|
|
RewriteEngine On
|
|
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
|
RewriteRule /(.*) ws://localhost:5000/$1 [P,L]
|
|
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
|
|
RewriteRule /(.*) http://localhost:5000/$1 [P,L]
|
|
|
|
ProxyPreserveHost On
|
|
#Proxy Requests to Remotely Server
|
|
<LocationMatch "/">
|
|
ProxyPass http://localhost:5000/
|
|
ProxyPassReverse http://localhost:5000/
|
|
</LocationMatch>
|
|
<Location "/BrowserHub">
|
|
ProxyPass http://localhost:5000/
|
|
ProxyPassReverse http://localhost:5000/
|
|
</Location>
|
|
|
|
<LocationMatch "/AgentHub">
|
|
ProxyPass http://localhost:5000/
|
|
ProxyPassReverse http://localhost:5000/
|
|
</LocationMatch>
|
|
|
|
<LocationMatch "/ViewerHub">
|
|
ProxyPass http://localhost:5000/
|
|
ProxyPassReverse http://localhost:5000/
|
|
</LocationMatch>
|
|
|
|
<LocationMatch "/CasterHub">
|
|
ProxyPass http://localhost:5000/
|
|
ProxyPassReverse http://localhost:5000/
|
|
</LocationMatch>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
SSLCertificateFile {Path to fullchain.pem}
|
|
SSLCertificateKeyFile {Path to key.pem}
|
|
Include /etc/letsencrypt/options-ssl-apache.conf #Change this to wherever your apache options for LE are, or ignore if you don't use LE
|
|
</VirtualHost>
|
|
|
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
</IfModule> |