phpstudy配置虚拟主机
vhosts.conf
<VirtualHost _default_:80> DocumentRoot "D:\phpStudy\WWW" <Directory "D:\phpStudy\WWW"> Options -Indexes +FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "E:\www\passfeed" ServerName www.passfeed.cn ServerAlias <Directory "E:\www\passfeed"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "E:\www\tpshop" ServerName www.tpshop.cn ServerAlias <Directory "E:\www\tpshop"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
host
配置
127.0.0.1 www.tpshop.cn
127.0.0.1 www.passfeed.cn
开启 LoadModule vhost_alias_module modules/mod_vhost_alias.so
Dream Possible