Last active
June 15, 2021 19:35
-
-
Save NthPortal/beef6c67b696b63300926c146a5556ae to your computer and use it in GitHub Desktop.
Example proxy config (for Sonatype Nexus) for Apache2
This file contains 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
ProxyRequests Off | |
ProxyPreserveHost On | |
<VirtualHost *:80> | |
ServerName example.com | |
RedirectPermanent / https://example.com/ | |
</VirtualHost> | |
<VirtualHost *:443> | |
SSLEngine on | |
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem | |
ServerName example.com | |
ProxyPass / http://localhost:8081/ | |
ProxyPassReverse / http:/localhost:8081/ | |
RequestHeader set X-Forwarded-Proto "https" | |
ErrorLog logs/example.com/nexus/error.log | |
CustomLog logs/example.com/nexus/access.log common | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment