您的位置:首页 > 运维架构 > 反向代理

apache,R,P,url重写,伪静态,反向代理

2013-12-23 17:27 323 查看
需求:

1,浏览器地址栏中URL不变

2,伪静态重写生效

=====================

<VirtualHost *>
ServerName xinwen.888.com.cn
ServerAlias www.xinwen.888.com.cn
DocumentRoot /data/xinwen
CustomLog "|/usr/local/cronolog/sbin/cronolog /usr/local/apache2/logs/xinwen_access%Y%m%d.log" combined env=!NOFILES
ErrorDocument 404 /404.html
<Directory "/data/xinwen/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Deny from 111.111.0.
Deny from 111.111.4.
</Directory>
<IfModule mod_weblogic.c>
WebLogicHost 127.0.0.1
WebLogicPort 8080
MatchExpression *.jsp
MatchExpression */rlr*
MatchExpression */dwr/*
WLTempDir /home/userputong/wltemp
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule /xinwen_(.*).html$ /rlrxinwenlist?classid=$1 [R,P]
RewriteRule /showxinwen(.*).html /rlrxinwendetail?id=$1 [R,P]
</IfModule>

</VirtualHost>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: