由一台服务器的apache 代理 到另外一台 apache
来源:互联网 发布:淘宝的收货地址怎么删 编辑:程序博客网 时间:2024/04/30 01:12
两台服务器,一台外网可以访问,另一台不能。
A服务器可以被外网访问,B服务器不能。
A服务器上的apache配置:
NameVirtualHost *:80<VirtualHost *:80> ServerName localhost ServerAlias localhost ServerAdmin myclub@myclub.com ProxyPass /ikea http://172.16.22.11:89 ProxyPassReverse /ikea http://172.16.22.11:89 <proxy http://172.16.22.11:89> AllowOverride All Order Deny,Allow Allow from all </proxy> proxypass /svn ! ProxyPass /clubupload ! ProxyPass /****upload ! ProxyPass /bugs ! ErrorLog logs/error_log CustomLog logs/access_log common ErrorDocument 404 /sys/logon.jsp </proxy></VirtualHost>
监听A服务器的80端口,然后由代理到B服务器的89端口
B服务器上的89端口配置:
NameVirtualHost *:89<VirtualHost *:89> DocumentRoot /var/www/website/community.ikea.cn ServerName community.ikea.cnRewriteEngine On#RewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^/hfcenter/class_([0-9]+)\.html$ /hfcenter/articlelist.php?hfid=$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^/hfcenter/topic_([0-9]+)\.html$ /hfcenter/showarticle.php?aid=$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^/hfcenter/topic_([0-9]+)_([0-9]+)\.html$ /hfcenter/showarticle.php?aid=$1&asid=$2 [L]</VirtualHost>
阅读全文
0 0
- 由一台服务器的apache 代理 到另外一台 apache
- 拷贝数据库到另外一台服务器
- 项目由一台服务器转移到另一台服务器的步:
- ASP.Net如何把文件从一台服务器上传到另外一台服务器
- 迁移mysql数据文件从一台服务器到另外一台服务器
- 如何把文件上传到另外一台服务器
- 如何把文件上传到另外一台服务器
- 上传文件并保存到另外一台服务器
- 如何把文件上传到另外一台服务器【转】
- 如何把文件上传到另外一台服务器
- 如何把文件上传到另外一台服务器1
- 如何把文件上传到另外一台服务器2
- 如何把文件上传到另外一台服务器3
- 如何把文件上传到另外一台服务器
- 使用jersey实现图片上传到另外一台服务器
- Oracle10g迁移备份、搬迁数据库到另外一台服务器
- 定时备份SQL SERVER的数据库并且把备份文件复制到另外一台服务器保存
- WeChat 聊天记录从一台手机转移到另外一台手机的注意事项
- yum 安装 svn
- Ubuntu下gcc安装及使用
- ceph & openstack cinder集成方案验证
- linux下如何把apache作为服务运行?
- Unity2017Sprite Atlas的使用
- 由一台服务器的apache 代理 到另外一台 apache
- 使用Zend Studio 8 断点调试 php
- java——JDBC
- 使用TinyXML读取xml文件中文乱码
- 时间戳和日期转换
- poj 3264 Balanced Lineup 线段树
- fir滤波器的设计和实现
- 以***结尾
- Linux启动/停止/重启Mysql数据库的方法