NameVirtualHost 192.168.1.21:8080
<VirtualHost 192.168.1.21:8080>
    ServerAdmin [email protected]
    DocumentRoot "d:/php/phpBB2"
    ServerName dummy-host.example.com
    ErrorLog logs/dummy-host.example.com-error_log
   CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
#还是不行
没人回!!!!
upup

解决方案 »

  1.   

    一个80  一个81  GO TEST;
    ^_^
      

  2.   

    listen 8080
    listen 80then, add your config
      

  3.   

    在配置文件httpd中找到如下语句,再加一行Listen 8080试试
    Listen 80
      

  4.   

    然后再找到ServerName yourdomain.net:80
    再加一行ServerName yourdomain.net:8080
    restart你的apache,就可以了
      

  5.   

    listen 192.168.1.21:81
    NameVirtualHost 192.168.1.21:81
    <VirtualHost 192.168.1.21:81>
        ServerAdmin [email protected]
        DocumentRoot "d:/ld/phpbb2"
        ServerName 192.168.1.21:81
        ErrorLog logs/dummy-host.example.com-error_log
       CustomLog logs/dummy-host.example.com-access_log common
    </VirtualHost>
    可以了谢谢大家的帮忙
      

  6.   

    那里面的   port 80这行配置又是起什么作用的
    还有这行又是干什么的Listen 12.34.56.78:80