编译Module
进入源代码的module目录
/usr/local/apache/bin/apxs -c -i -a mod_proxy.c proxy_util.c
/usr/local/apache/bin/apxs -c -i -a mod_proxy_http.c
-c 编译
-i 安装
-a 编译完成后自动增加一行LoadModule到httpd.conf
添加vhost
vim /usr/local/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName ghs.tthen.com
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost on
ProxyPass / http://ghs.google.com/
ProxyPassReverse / http://ghs.google.com/
</VirtualHost>
没有评论:
发表评论