国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > WEB服務 > 正文

Apache服務器中設置端口映射和反向代理的方法

2020-05-27 13:19:02
字體:
來源:轉載
供稿:網友

 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>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 崇州市| 印江| 青海省| 视频| 玉林市| 田东县| 英德市| 南京市| 海林市| 蓬溪县| 蒙山县| 永善县| 许昌市| 鹿泉市| 弥勒县| 景德镇市| 元阳县| 全椒县| 阜新市| 长垣县| 天全县| 石台县| 团风县| 玛沁县| 平陆县| 湖口县| 延津县| 松江区| 襄汾县| 苏州市| 兴安盟| 昌吉市| 玉溪市| 靖边县| 佛坪县| 安新县| 牡丹江市| 长宁区| 桦甸市| 玉屏| 迭部县|