apache搭的服务器域名能访问, IP访问不了的解决方法

时间:2020-12-07 19:53:38
加:ServerAlias *


<VirtualHost *:80>
    <Directory "c:/wamp/www/">
        Options FollowSymLinks
        AllowOverride All 
        Order deny,allow
        allow from All
    </Directory>
    DocumentRoot "c:/wamp/www/"
#ServerName *:80
ServerAlias *
    ErrorLog "c:/wamp/logs/error_log"
    #CustomLog "c:/wamp/logs/access.log" combined

ProxyPass /inv/  http://www.ycansoft.com:8080/


</VirtualHost>