Created
June 5, 2017 03:59
-
-
Save aavrug/b9688c123918025c0f412d5f717b8b20 to your computer and use it in GitHub Desktop.
Virtualhost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// /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