Skip to content

Instantly share code, notes, and snippets.

@dparoulek
Last active December 26, 2015 20:19
Show Gist options
  • Save dparoulek/7207696 to your computer and use it in GitHub Desktop.
Save dparoulek/7207696 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin upgradingdave@gmail.com
ServerName dev.sis.com
# ServerAlias dev.sis.com
ErrorLog "logs/sis-error_log"
CustomLog "logs/sis-access_log" common
<Location />
Order allow,deny
Allow from all
</Location>
ProxyRequests On
RewriteEngine On
RewriteRule ^/rest/$ http://localhost:8181/rest/ [P]
RewriteRule ^/rest/(.+)$ http://localhost:8181/rest/$1 [P]
RewriteRule ^/ui/$ http://localhost:8181/ui/ [P]
RewriteRule ^/ui/(.+)$ http://localhost:8181/ui/$1 [P]
</VirtualHost>
<VirtualHost *:80>
ServerAdmin upgradingdave@gmail.com
ServerName dev.sis.com
# ServerAlias dev.sis.com
ErrorLog "logs/sis-error_log"
CustomLog "logs/sis-access_log" common
<Location />
Order allow,deny
Allow from all
</Location>
ProxyRequests On
RewriteEngine On
RewriteRule ^/rest/$ http://localhost:8181/rest/ [P]
RewriteRule ^/rest/(.+)$ http://localhost:8181/rest/$1 [P]
RewriteRule ^/$ http://localhost:8181/ui/ [P]
RewriteRule ^/(.+)$ http://localhost:8181/ui/$1 [P]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment