一、设置host文件
二、设置httpd.conf
# Virtual hosts Include conf/extra/httpd-vhosts.conf
三、设置httpd-vhosts.conf
<VirtualHost *:80> DocumentRoot "D:\Program Files\wamp\www\weiphp" ServerName www.weiphp.com ServerAlias </VirtualHost> <Directory "D:\Program Files\wamp\www\weiphp"> Options Indexes FollowSymLinks ExecCGI AllowOverride All Order Allow,Deny Allow from All </Directory>
时间: 2024-11-29 06:35:29