文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
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" ^_^
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载