Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. <VirtualHost 127.0.0.1:80>
  2.  
  3.  
  4. # ----------------------------------------------------------------------
  5. # General Host Settings
  6. # ----------------------------------------------------------------------
  7.  
  8. ServerAdmin admin@grasshopper.com
  9. DocumentRoot /opt/grasshopper-ui/apps/admin/ui
  10. ServerName admin.grasshopper.com
  11. ServerAlias admin.grasshopper.com
  12.  
  13. ErrorLog /etc/apache2/logsadmin_error.log
  14. CustomLog /etc/apache2/logsadmin_custom.log common
  15.  
  16.  
  17. # ----------------------------------------------------------------------
  18. # ProxyPass Directives
  19. # ----------------------------------------------------------------------
  20.  
  21. # Proxy api calls to the application server
  22. ProxyPass /api http://localhost:2000/api retry=0
  23. ProxyPassReverse /api http://localhost:2000/api
  24. ProxyPreserveHost On
  25.  
  26.  
  27. # ----------------------------------------------------------------------
  28. # General Directives
  29. # ----------------------------------------------------------------------
  30.  
  31. # Shared files
  32. Alias /shared /opt/grasshopper-ui/shared
  33.  
  34. # API docs
  35. Alias /docs /opt/grasshopper-ui/docs
  36.  
  37. # App files
  38. Alias /apps /opt/grasshopper-ui/apps
  39.  
  40. # Configuration
  41. Alias /configuration /opt/grasshopper-ui/apps/admin/ui
  42.  
  43. # Tenants
  44. Alias /tenants /opt/grasshopper-ui/apps/admin/ui
  45.  
  46. # Users
  47. Alias /users /opt/grasshopper-ui/apps/admin/ui
  48.  
  49. # QUnit tests
  50. Alias /qunit /opt/grasshopper-ui/tests/qunit
  51. <Directory /opt/grasshopper-ui/tests/qunit>
  52. Options Indexes FollowSymLinks
  53. Order Allow,Deny
  54. Allow from All
  55.  
  56. RewriteEngine On
  57. RewriteBase /qunit
  58. RewriteRule ^api\.(.*)$ /opt/grasshopper-ui/tests/qunit/tests/api.$1.html
  59. </Directory>
  60.  
  61. RewriteEngine On
  62. RewriteRule ^/notfound$ /opt/grasshopper-ui/shared/gh/errors/404.html
  63. RewriteRule ^/unavailable$ /opt/grasshopper-ui/shared/gh/errors/503.html
  64.  
  65.  
  66. # ----------------------------------------------------------------------
  67. # Error Documents
  68. # ----------------------------------------------------------------------
  69.  
  70. ErrorDocument 401 /shared/gh/errors/401.html
  71. ErrorDocument 404 /shared/gh/errors/404.html
  72. ErrorDocument 503 /shared/gh/errors/503.html
  73.  
  74. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement