Skip to content

Instantly share code, notes, and snippets.

@paeschli
Created January 7, 2013 15:07
Show Gist options
  • Save paeschli/4475649 to your computer and use it in GitHub Desktop.
Save paeschli/4475649 to your computer and use it in GitHub Desktop.
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName dornbirn.zhaw.ch
DocumentRoot /opt/csw/apache2/share/htdocs/gitorious/public
<Directory "/opt/csw/apache2/share/htdocs/gitorious/public">
Options -Indexes FollowSymLinks
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName dornbirn.zhaw.ch
DocumentRoot /opt/csw/apache2/share/htdocs/gitorious/public
SSLEngine on
SSLCertificateFile /etc/ssl/private/gitorious.crt
SSLCertificateKeyFile /etc/ssl/private/gitorious.key
ErrorLog "/var/apache2/2.2/logs/error_log"
<Directory "/opt/csw/apache2/share/htdocs/gitorious/public">
Options -Indexes FollowSymLinks
AllowOverride AuthConfig FileInfo
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