wap设置多端口,本地模拟跨域
1.httpd.conf 中添加Listen 8081
2.httpd.conf 中去除Include conf/extra/httpd-vhosts.conf的注释
3 httpd-vhosts中添加代码
<VirtualHost *:8081>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "E:/software/wamp/www/" (此路径与httpd.conf的DocumentRoot一致)
ServerName dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>