Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost 127.0.0.1:80>
- # ----------------------------------------------------------------------
- # General Host Settings
- # ----------------------------------------------------------------------
- ServerAdmin admin@grasshopper.com
- DocumentRoot /opt/grasshopper-ui/apps/admin/ui
- ServerName admin.grasshopper.com
- ServerAlias admin.grasshopper.com
- ErrorLog /etc/apache2/logsadmin_error.log
- CustomLog /etc/apache2/logsadmin_custom.log common
- # ----------------------------------------------------------------------
- # ProxyPass Directives
- # ----------------------------------------------------------------------
- # Proxy api calls to the application server
- ProxyPass /api http://localhost:2000/api retry=0
- ProxyPassReverse /api http://localhost:2000/api
- ProxyPreserveHost On
- # ----------------------------------------------------------------------
- # General Directives
- # ----------------------------------------------------------------------
- # Shared files
- Alias /shared /opt/grasshopper-ui/shared
- # API docs
- Alias /docs /opt/grasshopper-ui/docs
- # App files
- Alias /apps /opt/grasshopper-ui/apps
- # Configuration
- Alias /configuration /opt/grasshopper-ui/apps/admin/ui
- # Tenants
- Alias /tenants /opt/grasshopper-ui/apps/admin/ui
- # Users
- Alias /users /opt/grasshopper-ui/apps/admin/ui
- # QUnit tests
- Alias /qunit /opt/grasshopper-ui/tests/qunit
- <Directory /opt/grasshopper-ui/tests/qunit>
- Options Indexes FollowSymLinks
- Order Allow,Deny
- Allow from All
- RewriteEngine On
- RewriteBase /qunit
- RewriteRule ^api\.(.*)$ /opt/grasshopper-ui/tests/qunit/tests/api.$1.html
- </Directory>
- RewriteEngine On
- RewriteRule ^/notfound$ /opt/grasshopper-ui/shared/gh/errors/404.html
- RewriteRule ^/unavailable$ /opt/grasshopper-ui/shared/gh/errors/503.html
- # ----------------------------------------------------------------------
- # Error Documents
- # ----------------------------------------------------------------------
- ErrorDocument 401 /shared/gh/errors/401.html
- ErrorDocument 404 /shared/gh/errors/404.html
- ErrorDocument 503 /shared/gh/errors/503.html
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement