Advertisement
jbakosi

Phabricator VirtualHost configuration

Jun 22nd, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <VirtualHost *:80>
  2. # Change this to the domain which points to your host.
  3. ServerName phabricator.quinoacomputing.com
  4.  
  5. # Change this to the path where you put 'phabricator' when you checked it
  6. # out from GitHub when following the Installation Guide.
  7. #
  8. # Make sure you include "/webroot" at the end!
  9. DocumentRoot /usr/share/phabricator/webroot
  10.  
  11. # Redirect to the HTTPS virtual host below
  12. RewriteEngine on
  13. ReWriteCond %{SERVER_PORT} !^443$
  14. RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
  15.  
  16. </VirtualHost>
  17.  
  18. <VirtualHost *:443>
  19. # Change this to the domain which points to your host.
  20. ServerName phabricator.quinoacomputing.com
  21.  
  22. # Change this to the path where you put 'phabricator' when you checked it
  23. # out from GitHub when following the Installation Guide.
  24. #
  25. # Make sure you include "/webroot" at the end!
  26. DocumentRoot /usr/share/phabricator/webroot
  27.  
  28. RewriteEngine on
  29. RewriteRule ^/rsrc/(.*) - [L,QSA]
  30. RewriteRule ^/favicon.ico - [L,QSA]
  31. RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
  32.  
  33. SSLEngine on
  34. SSLCertificateFile /etc/ssl/localcerts/quinoacomputing.crt
  35. SSLCertificateKeyFile /etc/ssl/localcerts/quinoacomputing.key
  36.  
  37. <Directory "/usr/share/phabricator/webroot">
  38. Order allow,deny
  39. Allow from all
  40. </Directory>
  41.  
  42. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement