apache 多站点配置

97 阅读1分钟

<VirtualHost _default_:80>

DocumentRoot "e:\myphp_www\PHPTutorial\WWW"

<Directory "e:\myphp_www\PHPTutorial\WWW">

Options +Indexes +FollowSymLinks +ExecCGI

AllowOverride All

Order allow,deny

Allow from all

Require all granted

</Directory>

</VirtualHost>

 

<VirtualHost *:80>

    ServerName tp5.com

    DocumentRoot "e:\myphp_www\PHPTutorial\WWW\xl_tp5_study\public"

<Directory "e:\myphp_www\PHPTutorial\WWW\xl_tp5_study\public">

Options +Indexes +FollowSymLinks

AllowOverride All

Order allow,deny

Allow from all

Require all granted

</Directory>

</VirtualHost>