Skip to content

Instantly share code, notes, and snippets.

@enopanen
Created December 7, 2013 22:45
Show Gist options
  • Select an option

  • Save enopanen/7850495 to your computer and use it in GitHub Desktop.

Select an option

Save enopanen/7850495 to your computer and use it in GitHub Desktop.
Apache virtual host file example
# domain: example.com
# public: /home/example_user/public/example.com/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin [email protected]
ServerName www.example.com
ServerAlias example.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/example_user/public/example.com/public
# Log file locations
LogLevel warn
ErrorLog /home/example_user/public/example.com/log/error.log
CustomLog /home/example_user/public/example.com/log/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment