日期:2014-05-16  浏览次数:20938 次

Apache配置proxy实现端口映射及反向代理

httpd.conf文件


###new add for webui.cong###?
Include "E:/local/Wamp/bin/apache/Apache2.2.17/conf/webui_port.conf"?
Include "E:/local/Wamp/bin/apache/Apache2.2.17/conf/webui_proxy.conf"



webui_port.conf文件
#proxy本地端口映射


<VirtualHost _default_:8080>
DocumentRoot "E:/www/yingshe/"
<Directory "E:/www/yingshe/">
????Options -Indexes FollowSymLinks MultiViews
????AllowOverride all
????Order Deny,Allow
????Deny from all
????Allow from all
</Directory>

DirectoryIndex index.php
</VirtualHost>

ProxyPass /yingshe http://192.168.10.12:8080/
ProxyPassReverse /yingshe http://192.168.10.12:8080/

<proxy http://192.168.10.12:8080/>?
AllowOverride None?
Order Deny,Allow?
Allow from all?
</proxy>



webui_proxy.conf文件
#proxy远程反响代理


Listen 8002
<VirtualHost *:8002>
????SSLProxyEngine on
????ProxyRequests on
????ProxyPass /??????https://192.168.10.201/
????ProxyPassReverse /?? https://192.168.10.201/
????<proxy?? https://192.168.10.201/>
??????AllowOverride None
??????Order Deny,Allow
??????Allow from all
????</proxy>
</VirtualHost>