Alex的博客

本博客的文章均为原创,是本人从事行业多年来所遇见一些小问题的解决心得,希望可以帮助到大家!



apache 反向代理

1,在/etc/httpd/conf/httpd.conf文件中确认一下内容注释已经取消

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so


然后添加虚拟主机

<VirtualHost 123.123.com:80>
    ProxyPreserveHost On
    ServerAdmin alex@btfw.org
    ProxyPass / http://112.78.124.124:8080/
    ProxyPassReverse / http://112.78.124.124:8080/
    ServerName 123.123.com
    ErrorLog logs/123.123.com-error_log
    CustomLog logs/123.123.com-access_log common
</VirtualHost>

浏览571  评论0  Alex于 2015-12-10 9:01
发言