LoadModule proxy_module
modules/mod_proxy.so
LoadModule proxy_http_module
modules/mod_proxy_http.so
2.然后在最后增加
ProxyPass /images !
ProxyPass /css !
ProxyPass /js !
ProxyPass / http://localhost:8080/这个也可以写为:
ProxyPass
/oa
http://localhost:8080/oa
ProxyPassReverse
/oa
http://localhost:8080/oa
也可以连续增加以上两行,就是多个tomcat启动
ProxyPass /meb http://192.168.6.103:8081/meb
ProxyPassReverse /meb http://192.168.6.103:8081/meb
apachecss路径不识别的解决办法:1、删除中文字符,使用unicode代替;
2、将css文件另存为utf-8格式;
3、检查css路径,打开浏览器看是否报404错误;
4、使用chmod777css文件,给文件添加读取权限。
打开Apache配置文件httpd.conf,然后添加如下三行内容AddOutputFilterByType DEFLATE text/html text/php text/png text/jpg text/plain text/css text/xml text/javascript
DeflateCompressionLevel 9
SetOutputFilter DEFLATE
然后重启apache服务