Skip to content

Instantly share code, notes, and snippets.

@aavrug
Created June 5, 2017 03:59
Show Gist options
  • Save aavrug/b9688c123918025c0f412d5f717b8b20 to your computer and use it in GitHub Desktop.
Save aavrug/b9688c123918025c0f412d5f717b8b20 to your computer and use it in GitHub Desktop.
Virtualhost
// /etc/apache2/sites-available/site.conf
<VirtualHost *:80>
DocumentRoot "path of project directory(upto webroot/public folder)"
ServerName example.com
ServerAlias www.example.com.com
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory "path of project directory(upto webroot/public folder)">
AllowOverride All
Options FollowSymLinks
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