文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>"/opencms/opencms" to "/yourcms/yourcms" in URL

"/opencms/opencms" to "/yourcms/yourcms" in URL

时间:2009-02-10  来源:Squall_Liu

以前的文档,归档过来
  • First ,the setting maybe are not available for all versions. Mine is 6.2.1
  • Second,you needn't change the configs of the Apache or the Tomcat,just edit one XML file and a folder name.
You will find there is a file named "web.xml" in the directory :
../tomcat5/webapps/opencms/WEB-INF

open it with a editor and modify follow this:
Just requires 3 changes in this file.
1. Change the called "OpenCmsServlet" from "/opencms/" to "/yourcms/"
2. Change the for "OpenCmsServlet" from "/opencms/" to "/yourcms/"
3. Change the setting for the 404 error from "/opencms/handle404" to "/yourcms/handle404"


After modifying the code will be like below:
......
<param-name>OpenCmsServlet</param-name>
<param-value>/yourcms/*</param-value>
......

OpenCmsServlet
/yourcms/*
......

404
/yourcms/handle404
.....
Then save it and return the directory :
../tomcat5/webapps

You will find the folder of the OpenCms named "opencms", change the name of it to "yourcms" .Then reboot the Tomcat .Now you can access the OpenCms with new URL with "/yourcms/yourcms/" instead of "/opencms/opencms" ^_^
排行榜 更多 +
弓箭手战士酷跑

弓箭手战士酷跑

飞行射击 下载
三角洲行动全面战场攀升A点进攻指南

三角洲行动全面战场攀升A点进攻指南

飞行射击 下载
僵尸射手世界大战

僵尸射手世界大战

飞行射击 下载