Skip to content

Instantly share code, notes, and snippets.

@nkabir
Last active August 29, 2015 14:04
Show Gist options
  • Save nkabir/93e7f19d77809820376c to your computer and use it in GitHub Desktop.
Save nkabir/93e7f19d77809820376c to your computer and use it in GitHub Desktop.
docker-apache-config
<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