Created
March 14, 2016 16:16
-
-
Save GhazanfarMir/89b3902dcedcc483c7c2 to your computer and use it in GitHub Desktop.
Setting Virtual Hosts In CENTOS 7
This file contains 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
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot /var/www/html | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerName example.com | |
ServerAlias example.com | |
DocumentRoot /var/www/html/example.com | |
<Directory /var/www/html/example.com> | |
allow from all | |
Options +Indexes +FollowSymLinks | |
Order allow,deny | |
AllowOverride All | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment