|
在前几天安装时一直使用的配置,今天怎么就是搞不成功了。
apache+tomcat
访问8080的tomcat,正常
用IP访问80,It works!
加上**后,就是不成了。
---------------------proxy.conf
<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may allow
#spammers to use your proxy to send email.
ProxyRequests On
< roxy *>
#AddDefaultCharset off
Order deny,allow
#Deny from all
</Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via:
headers)
# Set to one of: Off | On | Full | Block
ProxyVia On
</IfModule>
---------------------VirtualHost 配置文件
#NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin xxx@xxx.com
ProxyPass / http://abc.com:8080/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
ProxyPassReverse / http://abc.com:8080/
ServerName abc.com
ErrorLog /var/www/abc/log/abc.com-error_log
CustomLog /var/www/abc/log/abc.com-access_log common
DocumentRoot /var/www/abc
<directory /var/www/abc>
allow from all
</directory>
</VirtualHost>
---------------------mod也都加载了。。。
ls /etc/apache2/mods-enabled/
alias.conf autoindex.load negotiation.conf proxy_http.load
alias.load cgi.load negotiation.load proxy.load
auth_basic.load deflate.conf php5.conf setenvif.conf
authn_file.load deflate.load php5.load setenvif.load
authz_default.load dir.conf proxy_ajp.load status.conf
authz_groupfile.load dir.load proxy_balancer.load status.load
authz_host.load env.load proxy.conf
authz_user.load mime.conf proxy_connect.load
autoindex.conf mime.load proxy_ftp.load |
|