apache http2.0中使用urlrewrite
以apache http2.0+tomcat6.0为例一、要使用urlrewirte,先将
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
两条模块的注释去掉,以启动rewirte代理功能
二、设置虚拟主机
<VirtualHost localhost:80>
ServerAdmin shuishou0443@sina.com
DocumentRoot "D:\project\dlspace\webroot"
JkMount /*.jsp tomcatV2 //这里的tomcatV2为worker.properties中的worker
JkMount /*.do tomcatV2
RewriteEngine on
RewriteLog logs/rewrite.log
RewriteLogLevel 3
RewriteRule ^/dlspace$ /dlspace/index.do //即将以/dlspace结尾的请求后台代理为/dlspace/index.do
</VirtualHost>
页:
[1]