1、httpd.conf
放开
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Include conf/extra/httpd-vhosts.conf
2、httpd-vhosts.conf
增加
<VirtualHost *:80>
ServerName localhost
ProxyPass /wechat http://localhost:1080
ProxyPassReverse /wechat http://localhost:1080
</VirtualHost>
3、报没有权限
在httpd.conf
修改
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
为
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
问题:
如果url与应用上下文根不一致,会导致照片等资源无法找到,改为一致后,应用中有些是全url加载的js,出错,....