Last active
August 29, 2015 14:04
-
-
Save nkabir/93e7f19d77809820376c to your computer and use it in GitHub Desktop.
docker-apache-config
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 *:443> | |
ServerName europa04 | |
ServerAdmin [email protected] | |
SSLEngine on | |
SSLCertificateFile /etc/apache2/ssl/docker-cert.pem | |
SSLCertificateKeyFile /etc/apache2/ssl/docker-key.pem | |
SSLCACertificateFile /etc//ssl/certs/fimero-ca.pem | |
ProxyRequests off | |
ProxyPreserveHost on | |
ProxyPass / http://localhost:5000/ | |
ProxyPassReverse / http://localhost:5000/ | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
LogLevel info | |
RequestHeader unset Authorization | |
<Location /> | |
AuthType Basic | |
AuthName "Private Docker registery" | |
AuthUserFile /var/tmp/htpasswd | |
Require valid-user | |
</Location> | |
<Location /v1/_ping> | |
Order allow,deny | |
Allow from all | |
Satisfy any | |
</Location> | |
<Location /_ping> | |
Order allow,deny | |
Allow from all | |
Satisfy any | |
</Location> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment