Skip to content

Instantly share code, notes, and snippets.

@dragoonis
Created May 22, 2012 13:30
Show Gist options
  • Save dragoonis/2769064 to your computer and use it in GitHub Desktop.
Save dragoonis/2769064 to your computer and use it in GitHub Desktop.
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/cert.pem
ServerAdmin webmaster@localhost
DocumentRoot /var/www/htdocs/htdocs/
</VirtualHost>
ScriptAlias /cgi-bin/ /var/www/htdocs/htdocs/cgi-bin/
<VirtualHost *:80>
DocumentRoot /var/www/htdocs/htdocs
ServerName localhost
RewriteEngine On
<Directory /var/www/htdocs/htdocs/>
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment