Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created September 11, 2012 13:24
Show Gist options
  • Save phlegx/3698439 to your computer and use it in GitHub Desktop.
Save phlegx/3698439 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
RedirectMatch .* https://jira.example.com
ServerName jira.example.com
</VirtualHost>
<VirtualHost *:443>
ServerName jira.example.com
ServerAlias jira.example.com
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:9080/
ProxyPassReverse / http://localhost:9080/
<Location />
Order allow,deny
Allow from all
</Location>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment