Skip to content

Commit

Permalink
add mobile to apacheconf
Browse files Browse the repository at this point in the history
  • Loading branch information
henningthies committed Oct 12, 2012
1 parent b4d76ee commit 2c64c9c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions apache2/passenger_vhost.conf.erb
Expand Up @@ -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
Expand Down Expand Up @@ -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' %>

Expand Down Expand Up @@ -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) %>
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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' %>

Expand Down

0 comments on commit 2c64c9c

Please sign in to comment.