标签:网站 激活 添加 web服务 ever 教育网 included pre type
"./configure" "-prefix=/usr/local/apache3" "--enable-so" "--enable-rewrite" "--with-mpm=prefork" "--enable-proxy" \ (这个参数即是代理模块启用)
Compiled in 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 *:80 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com ServerName www.a.org ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://192.168.0.115/ ProxyPassReverse / http://192.168.0.115/ </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com ServerName www.b.org ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://127.0.0.1:9000/ ProxyPassReverse / http://127.0.0.1:9000/ </VirtualHost>
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 *:80 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com ServerName www.a.org ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://192.168.0.115/ ProxyPassReverse / http://192.168.0.115/ </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com ServerName www.b.org ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://127.0.0.1:9000/ ProxyPassReverse / http://127.0.0.1:9000/ </VirtualHost>
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.othe r.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.
标签:网站 激活 添加 web服务 ever 教育网 included pre type
原文地址:http://www.cnblogs.com/aini521521/p/7126432.html