Created
September 16, 2015 02:46
-
-
Save anonymous/042cb0166e7300ee2f03 to your computer and use it in GitHub Desktop.
Revisions
-
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ <VirtualHost *:80> ServerAdmin [email protected] Header set Access-Control-Allow-Origin "*" ServerName whereis.example.com # Proxy settings ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> DocumentRoot /var/www/example/whereis/whereIAm/templates/ Alias / /var/www/example/whereis/whereIAm/templates/mainpage.html # This is done so that the html will be served apache, while the app handles the api ProxyPass /currentpos http://127.0.0.1:8001/currentpos ProxyPassReverse /currentpos http://127.0.0.1:8001/currentpos ProxyPass /update http://127.0.0.1:8001/update ProxyPassReverse /update http://127.0.0.1:8001/update ProxyPass /allpos http://127.0.0.1:8001/allpos ProxyPassReverse /allpos http://127.0.0.1:8001/allpos </VirtualHost>