Created
December 15, 2017 17:21
-
-
Save cmiles74/0e5789262472025e94233fe47f664e6f to your computer and use it in GitHub Desktop.
Example Proxy for Java App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName nexus.nervestaple.com | |
ServerAdmin [email protected] | |
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