Skip to content

Instantly share code, notes, and snippets.

@cmiles74
Created December 15, 2017 17:21
Show Gist options
  • Save cmiles74/0e5789262472025e94233fe47f664e6f to your computer and use it in GitHub Desktop.
Save cmiles74/0e5789262472025e94233fe47f664e6f to your computer and use it in GitHub Desktop.
Example Proxy for Java App
<VirtualHost *:80>
ServerName nexus.nervestaple.com
ServerAdmin twitch@nervestaple.com
ProxyPreserveHost On
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
ErrorLog ${APACHE_LOG_DIR}/nexus-error.log
CustomLog ${APACHE_LOG_DIR}/nexus-access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =nexus.nervestaple.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment