apache 伪静态,tomcat6 !!!
已将 apache2.2 与 tomcat6 整合,但这个伪静态 到底是怎么实现 ??
apache 的httpd.conf 中,也做了相应的配置:
LoadModule rewrite_module modules/mod_rewrite.so
<Directory />
Options FollowSymLinks
AllowOverride all
Order deny,allow
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/task/Detail_(\d+)\.html$ $1/xsdetail.action?tid=$2
</IfModule>
在 list 页面中,链接是 task/Detail_1.html,task/Detail_2.html,...
点击后,并没有向 xsdetail.action 跳转,直接提示找不着 task/Detail_1.html 页面,
因为这个html 本身就是虚拟的,也就是 伪静态配置未能实现,请各位指教!!!
apache 的httpd.conf 中,也做了相应的配置:
LoadModule rewrite_module modules/mod_rewrite.so
<Directory />
Options FollowSymLinks
AllowOverride all
Order deny,allow
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/task/Detail_(\d+)\.html$ $1/xsdetail.action?tid=$2
</IfModule>
在 list 页面中,链接是 task/Detail_1.html,task/Detail_2.html,...
点击后,并没有向 xsdetail.action 跳转,直接提示找不着 task/Detail_1.html 页面,
因为这个html 本身就是虚拟的,也就是 伪静态配置未能实现,请各位指教!!!
...全文
相关推荐
Apache与Tomcat集群,伪静态,负载均衡
NULL 博文链接:https://sunny-java-163-com.iteye.com/blog/661408
IIS6和Tomcat6整合
服务器配置 IIS6和Timcat6整合后伪静态页面处理问题
jsp伪静态,javaweb实现伪静态
jsp伪静态,javaweb实现伪静态实例,完整实例,说明文档
java伪静态简单实例
java伪静态简单实例 java urlrewrite 伪静态简单实例
thinkphp Apache配置重启Apache1 restart 出错解决办法
概要: thinkphp 在Apache上配置启用伪静态,重启Apache1 restart 竟然失败了,报错 Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details 嗯,看状态 执行命令 systemctl status httpd.service [root@cloud1 bin]# systemctl status http


Web 开发
