Skip to content

Instantly share code, notes, and snippets.

@cdtweb
Created October 6, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdtweb/ee2a490ac6ff48916b86d384eb115c39 to your computer and use it in GitHub Desktop.
Save cdtweb/ee2a490ac6ff48916b86d384eb115c39 to your computer and use it in GitHub Desktop.
Basic Apache VirtualHost
<VirtualHost *:80>
ServerAdmin admin@example.org
DocumentRoot /var/www/example.org/public
ServerName example.org
ServerAlias www.example.org
<Directory /var/www/example.org/public>
Options All
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/www/example.org/apache_error_log
TransferLog /var/www/example.org/apache_access_log
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment