wamp服务器增加9090端口访问项目:
# Virtual Hosts # <VirtualHost *:80> ServerName localhost DocumentRoot D:/wamp/www <Directory "D:/wamp/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> listen 9090 <VirtualHost *:9090> ServerName localhost:9090 DocumentRoot D:/wamp/www/YPB2C/home <Directory "D:/wamp/www/YPB2C/home/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> #
windows增加别名解析至ip地址:
C:\Windows\System32\drivers\etc
127.0.0.1:9090 testyipart.com
时间: 2024-10-05 04:58:31