Skip to content

Instantly share code, notes, and snippets.

@tstone
Created November 3, 2009 17:47
Show Gist options
  • Save tstone/225279 to your computer and use it in GitHub Desktop.
Save tstone/225279 to your computer and use it in GitHub Desktop.
Mercurial Apache Virtual Host
# ---- HTTPS -- Mercurial Virtual Host ----
<VirtualHost *:443>
ServerName hg.yourdomain.com:443
ServerAdmin webmaster@yourdomain.com
DocumentRoot "C:\Mercurial\repositories"
WSGIScriptAliasMatch ^(.*) C:\Mercurial\hgwebdir\hgwebdir.wsgi$1
<Directory "C:\Mercurial\hgwebdir">
Options ExecCGI FollowSymlinks
AddHandler cgi-script .cgi
AllowOverride AuthConfig
Order deny,allow
Allow from all
AuthType Basic
AuthName "Mercurial"
AuthUserFile "C:\Mercurial\accounts"
Require valid-user
</Directory>
# SSL Stuff...
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
# Server Certificate:
SSLCertificateFile "...your cert file..."
# Server Private Key:
SSLCertificateKeyFile "... your pk file..."
# SSL Protocol Adjustments:
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment