add vhost example

This commit is contained in:
hchs
2017-03-09 10:26:47 +08:00
parent 94c6240586
commit 37ed904f1a
6 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<VirtualHost *:80>
ServerName sample.dev
DocumentRoot /var/www/sample/public/
Options Indexes FollowSymLinks
<Directory "/var/www/sample/public/">
AllowOverride All
<IfVersion < 2.4>
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>