Skip to content

Instantly share code, notes, and snippets.

@y2kdev
Created September 19, 2010 01:30
Show Gist options
  • Save y2kdev/586261 to your computer and use it in GitHub Desktop.
Save y2kdev/586261 to your computer and use it in GitHub Desktop.
# domain: YOURDOMAIN.com
# public: /vhosts/domains/YOURDOMAIN.com/public
<VirtualHost YOURIP:80>
# Admin email, Server Name (domain name) and any aliases
ServerAdmin [email protected]
ServerName YOURDOMAIN.com
ServerAlias www.YOURDOMAIN.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html
DocumentRoot /vhosts/domains/YOURDOMAIN.com/public
# Custom log file locations
LogLevel warn
ErrorLog /vhosts/domains/YOURDOMAIN.com/log/error.log
CustomLog /vhosts/domains/YOURDOMAIN.com/log/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment