Skip to content

Instantly share code, notes, and snippets.

@GhazanfarMir
Created March 14, 2016 16: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 GhazanfarMir/89b3902dcedcc483c7c2 to your computer and use it in GitHub Desktop.
Save GhazanfarMir/89b3902dcedcc483c7c2 to your computer and use it in GitHub Desktop.
Setting Virtual Hosts In CENTOS 7
<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