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
<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
^_^
listen 80then, add your config
Listen 80
再加一行ServerName yourdomain.net:8080
restart你的apache,就可以了
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>
可以了谢谢大家的帮忙
还有这行又是干什么的Listen 12.34.56.78:80