Skip to content

Instantly share code, notes, and snippets.

@mattias-lidman
Created August 25, 2011 13:41
Show Gist options
  • Select an option

  • Save mattias-lidman/1170685 to your computer and use it in GitHub Desktop.

Select an option

Save mattias-lidman/1170685 to your computer and use it in GitHub Desktop.
client.conf
<VirtualHost *:443 *:4569>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/javascript text/css
SSLEngine On
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP
SSLProtocol all -SSLv2
SSLCertificateFile /vagrant/cert-file.crt
SSLCertificateKeyFile /vagrant/server.key
SSLOptions +StdEnvVars
#allow reverse proxy
ProxyRequests Off
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ServerName java_app.smackaho.st
ServerAlias alias_java_app.smackaho.st
ErrorLog /var/log/apache2/java_app.smackaho.st-error.log
CustomLog /var/log/apache2/java_app.smackaho.st-access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment