Skip to content

Instantly share code, notes, and snippets.

@ekinertac
Created June 21, 2012 11:09
Show Gist options
  • Save ekinertac/2965156 to your computer and use it in GitHub Desktop.
Save ekinertac/2965156 to your computer and use it in GitHub Desktop.
Apache2 Sites Enable Config File
<VirtualHost :80>
ServerAdmin webmaster@$domain
ServerName www.$domain
ServerAlias $domain
# Indexes + Directory Root.
DirectoryIndex index.php
DocumentRoot /home/$domain/htdocs/
# CGI Directory
ScriptAlias /cgi-bin/ /home/$domain/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /home/$domain/logs/error.log
CustomLog /home/$domain/logs/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment