Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add mobile to apacheconf

  • Loading branch information...
commit 2c64c9cd0cfa3a8646673587b662e2a6921c0c1b 1 parent b4d76ee
Henning Thies henningthies authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 apache2/passenger_vhost.conf.erb
27 apache2/passenger_vhost.conf.erb
View
@@ -19,6 +19,12 @@ PassengerUseGlobalQueue on
Allow from all
</Proxy>
+ <Proxy http://127.0.0.1:8080>
+ AddDefaultCharset off
+ Order deny,allow
+ Allow from all
+ </Proxy>
+
<ProxyMatch http://127.0.0.1:8000>
AddDefaultCharset off
Order deny,allow
@@ -48,6 +54,9 @@ PassengerUseGlobalQueue on
ProxyPass /monit/ http://127.0.0.1:2812/
ProxyPassReverse /monit/ http://127.0.0.1:2812/
+ ProxyPass /mobile http://127.0.0.1:8080
+ ProxyPassReverse /mobile http://127.0.0.1:8080
+
XSendFile on
XSendFilePath <%= var(:document_root) / 'shared/files' %>
@@ -88,6 +97,15 @@ PassengerUseGlobalQueue on
</Directory>
</VirtualHost>
+Listen *:8080
+<VirtualHost *:8080>
+ DocumentRoot /home/protonet/dashboard/current/mobile/public
+ <Directory /home/protonet/dashboard/current/mobile/public>
+ AllowOverride all
+ Allow from all
+ </Directory>
+</VirtualHost>
+
<VirtualHost *:443>
ServerName <%= var(:server_name) %>
@@ -121,6 +139,12 @@ PassengerUseGlobalQueue on
Allow from all
</Proxy>
+ <Proxy http://127.0.0.1:8080>
+ AddDefaultCharset off
+ Order deny,allow
+ Allow from all
+ </Proxy>
+
<ProxyMatch http://127.0.0.1:8000>
AddDefaultCharset off
Order deny,allow
@@ -150,6 +174,9 @@ PassengerUseGlobalQueue on
ProxyPass /monit/ http://127.0.0.1:2812/
ProxyPassReverse /monit/ http://127.0.0.1:2812/
+ ProxyPass /mobile http://127.0.0.1:8080
+ ProxyPassReverse /mobile http://127.0.0.1:8080
+
XSendFile on
XSendFilePath <%= var(:document_root) / 'shared/files' %>
Please sign in to comment.
Something went wrong with that request. Please try again.