Skip to content

Instantly share code, notes, and snippets.

@csinghdev
Created March 14, 2020 11:52
Show Gist options
  • Save csinghdev/04d527cb5e182f3f4637feb8096d6c02 to your computer and use it in GitHub Desktop.
Save csinghdev/04d527cb5e182f3f4637feb8096d6c02 to your computer and use it in GitHub Desktop.
Apache virtual host conf file
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example
ErrorLog ${APACHE_LOG_DIR}/example.com-error.log
CustomLog ${APACHE_LOG_DIR}/example.com-access.log combined
<Directory /var/www/example/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment