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本地端口映射
DocumentRoot "E:/www/yingshe/" Options -Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from all 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 NoneOrder Deny,AllowAllow 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>
總結#Apache mod_proxy做反向代理##要做更多支持請開啟以下相應module##proxy_module##反向代理模塊##proxy_http_module##反向代理http協議模塊##Rewrite_module##地址重寫##ssl_module##ssl協議模塊######################################################### 通過https請求apache,apache也通過https訪問系統########################################################
Listen 443<VirtualHost *:443> ProxyRequests On # 聲明ssl代理引擎 SSLProxyEngine on # 這里聲明代理的URL轉換處理 # 注意需要使用域名,否則證書、用戶頁面的URL會有問題 ProxyPass / https://www.×××.com/ ProxyPassReverse / https://www.×××.com/ #此處項目名稱 /https://www.×××.com/ 代理為 / 跟目錄訪問,session會丟失,需要配置如下信息 ProxyPassReverseCookiePath /https://www.×××.com /</VirtualHost>############################################################## 通過http請求apache,apache也通過http訪問代理站點#############################################################Listen 80<VirtualHost *:80> ProxyRequests On ProxyPass / http://www.×××.com/ ProxyPassReverse / http://www.×××.com/ ProxyPassReverseCookiePath /https://www.×××.com / <proxy https://www.×××.com> AllowOverride None Order Deny,Allow Allow from all </proxy></VirtualHost>######################################################### 通過http請求apache,apache通過https訪問系統########################################################Listen 8002<VirtualHost *:8002> ProxyRequests On # 聲明ssl代理引擎 SSLProxyEngine on # 這里聲明代理的URL轉換處理 # 注意需要使用域名,否則證書、用戶頁面的URL會有問題 ProxyPass / https://www.×××.com/ ProxyPassReverse / https://www.×××.com/ #此處項目名稱 /https://www.×××.com/ 代理為 / 跟目錄訪問,session會丟失,需要配置如下信息 ProxyPassReverseCookiePath /https://www.×××.com / <proxy https://www.×××.com> AllowOverride None Order Deny,Allow Allow from all </proxy></VirtualHost>
新聞熱點
疑難解答