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遠(yuǎn)程反響代理
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>
總結(jié)#Apache mod_proxy做反向代理##要做更多支持請(qǐng)開啟以下相應(yīng)module##proxy_module##反向代理模塊##proxy_http_module##反向代理http協(xié)議模塊##Rewrite_module##地址重寫##ssl_module##ssl協(xié)議模塊######################################################### 通過(guò)https請(qǐng)求apache,apache也通過(guò)https訪問(wèn)系統(tǒng)########################################################
Listen 443<VirtualHost *:443> ProxyRequests On # 聲明ssl代理引擎 SSLProxyEngine on # 這里聲明代理的URL轉(zhuǎn)換處理 # 注意需要使用域名,否則證書、用戶頁(yè)面的URL會(huì)有問(wèn)題 ProxyPass / https://www.×××.com/ ProxyPassReverse / https://www.×××.com/ #此處項(xiàng)目名稱 /https://www.×××.com/ 代理為 / 跟目錄訪問(wèn),session會(huì)丟失,需要配置如下信息 ProxyPassReverseCookiePath /https://www.×××.com /</VirtualHost>############################################################## 通過(guò)http請(qǐng)求apache,apache也通過(guò)http訪問(wèn)代理站點(diǎn)#############################################################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>######################################################### 通過(guò)http請(qǐng)求apache,apache通過(guò)https訪問(wèn)系統(tǒng)########################################################Listen 8002<VirtualHost *:8002> ProxyRequests On # 聲明ssl代理引擎 SSLProxyEngine on # 這里聲明代理的URL轉(zhuǎn)換處理 # 注意需要使用域名,否則證書、用戶頁(yè)面的URL會(huì)有問(wèn)題 ProxyPass / https://www.×××.com/ ProxyPassReverse / https://www.×××.com/ #此處項(xiàng)目名稱 /https://www.×××.com/ 代理為 / 跟目錄訪問(wèn),session會(huì)丟失,需要配置如下信息 ProxyPassReverseCookiePath /https://www.×××.com / <proxy https://www.×××.com> AllowOverride None Order Deny,Allow Allow from all </proxy></VirtualHost>
新聞熱點(diǎn)
疑難解答
圖片精選