minor port changes + add apache + vhosts
This commit is contained in:
18
config/vhosts/code-server.conf
Normal file
18
config/vhosts/code-server.conf
Normal file
@@ -0,0 +1,18 @@
|
||||
<VirtualHost *:8080>
|
||||
ServerName localhost
|
||||
ServerAdmin kishan@kinesis.games
|
||||
|
||||
ErrorLog /var/log/apache2/error.log
|
||||
CustomLog /var/log/apache2/access.log combined
|
||||
|
||||
ProxyRequests Off
|
||||
ProxyPreserveHost On
|
||||
ProxyPass / http://127.0.0.1:9000/
|
||||
ProxyPassReverse / http://127.0.0.1:9000/
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
||||
RewriteRule /(.*) ws://127.0.0.1:9000/$1 [P,L]
|
||||
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
|
||||
RewriteRule /(.*) http://127.0.0.1:9000/$1 [P,L]
|
||||
</VirtualHost>
|
||||
8
config/vhosts/default.conf
Normal file
8
config/vhosts/default.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
<VirtualHost *:80>
|
||||
DocumentRoot "/var/www/html"
|
||||
ServerName localhost
|
||||
ServerAdmin kishan@kinesis.games
|
||||
<Directory "/var/www/html/">
|
||||
AllowOverride all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user