\wamp\bin\apache\Apache2.4.4\conf\extra\httpd-vhosts.conf 修改如下

NameVirtualHost *:80

 
       DocumentRoot"E:/website/pxsj" 
       ServerName host7.com
ServerAlias 192.168.1.116
        
           OptionsIndexes FollowSymLinks 
          AllowOverride None 
           Orderallow,deny 
           Allow fromall 
        

NameVirtualHost *:8080

 
       DocumentRoot"E:/website/whsj" 
       ServerName host10.com:8080
ServerAlias 192.168.1.116:8080
        
           OptionsIndexes FollowSymLinks 
          AllowOverride None 
           Orderallow,deny 
           Allow fromall 
        

\wamp\bin\apache\Apache2.4.4\conf\httpd.conf 修改如下:

Listen 80
Listen 8080

C:\Windows\System32\drivers\etc\hosts 修改配置

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章:

  • 2022-12-23
  • 2021-08-24
  • 2021-11-01
  • 2021-12-27
  • 2021-05-01
  • 2022-12-23
  • 2021-05-02
猜你喜欢
  • 2021-07-14
  • 2021-11-10
  • 2022-01-21
  • 2022-01-24
  • 2021-04-24
相关资源
相似解决方案