quest 查看 cal attach page load 浏览器中 ont
- "./configure" "-prefix=/usr/local/apache3" "--enable-so" "--enable-rewrite" "--with-mpm=prefork" "--enable-proxy"\ (这个参数即是代理模块启用)
- Compiledin modules:
- core.c
- mod_access.c
- mod_auth.c
- mod_include.c
- mod_log_config.c
- mod_env.c
- mod_setenvif.c
- mod_proxy.c
- proxy_connect.c
- proxy_ftp.c
- proxy_http.c
- prefork.c
- http_core.c
- NameVirtualHost *:8080>
- ServerAdmin [email protected]-host.example.com
- ServerName www.a.org
- ProxyRequests Off
- Order deny,allow
- Allow from all
- ProxyPass / http://192.168.0.115/ProxyPassReverse / http://192.168.0.115/80>
- ServerAdmin [email protected]-host.example.com
- ServerName www.b.org
- ProxyRequests Off
- Order deny,allow
- Allow from all
- ProxyPass / http://127.0.0.1:9000/ProxyPassReverse / http://127.0.0.1:9000/
- cd httpd-2.0.63/modules/proxy/
- /usr/local/apache2/bin/apxs -c -i -a mod_proxy.c proxy_connect.c proxy_http.c proxy_util.c
- cd /usr/local/apache2/conf/
- ls ../modules/ 看到确实有mod_prxoy.so
- LoadModule proxy_module modules/mod_proxy.so (这句是编译激活时产生的)
- LoadModule proxy_http_module modules/mod_proxy.so (这句是要手动添加的)
- NameVirtualHost *:8080>
- ServerAdmin [email protected]-host.example.com
- ServerName www.a.org
- ProxyRequests Off
- Order deny,allow
- Allow from all
- ProxyPass / http://192.168.0.115/ProxyPassReverse / http://192.168.0.115/80>
- ServerAdmin [email protected]-host.example.com
- ServerName www.b.org
- ProxyRequests Off
- Order deny,allow
- Allow from all
- ProxyPass / http://127.0.0.1:9000/ProxyPassReverse / http://127.0.0.1:9000/
- Forbidden
- You don't have permission to access / on this server.
- 192.168.0.28- - [03/Jun/2009:16:16:27+0800]"GET /?sessionId=4293567494722637330&rand=1244014624405&CONTEXT=0&page=com.other.AjaxWhoWhatUpdate&xrand=1244016991554&wwRandId=1244014624405&wwBugId=2341&wwType=View HTTP/1.1" 403 315
- 192.168.0.28- - [03/Jun/2009:17:10:32+0800]"GET / HTTP/1.1" 403 315
- [Wed Jun 03 17 : 08 : 46 2009][warn] proxy: No protocol handler was valid
- for the URL / .If you are using a DSO version of mod_p roxy,
- make sure the proxy submodules are included in the configuration using LoadModule.
Apache 做反向代理服务器
来源: http://www.bubuko.com/infodetail-2155847.html