Created
November 3, 2009 17:47
-
-
Save tstone/225279 to your computer and use it in GitHub Desktop.
Mercurial Apache Virtual Host
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
# ---- HTTPS -- Mercurial Virtual Host ---- | |
<VirtualHost *:443> | |
ServerName hg.yourdomain.com:443 | |
ServerAdmin [email protected] | |
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