[opencms-dev] Remove 'opencms/opencms' of url

Daniel daoquan at gmail.com
Wed Jul 6 05:05:04 CEST 2011


Sorry,I have made a mistake in step 3.
Please keep the value of context parameter “OpenCmsServlet” as “/opencms/*",
and change the value of
"vfs-prefix" in WEB-INF/config/opencms-importexport.xml  from
"${CONTEXT_NAME}${SERVLET_NAME}" to "${CONTEXT_NAME}"

在 2011年7月5日 下午4:58,Daniel <daoquan at gmail.com>写道:

> Hi,
> I used mod_rewrite to do this befor,but it coused a browser redirect.So, I
> write a filter to do the work instead.
>
> Here is my solution to remove 'opencms/opencms' from url, 3 steps.
> 1、deploy opencms as ROOT webapp
> 2、mapping my filter in web.xml
> <filter>
> <filter-name>UriRewriteFilter</filter-name>
> <filter-class>com.dcampus.opencms.web.UriRewriteFilter</filter-class>
> <init-param>
> <param-name>ignore-uri</param-name>
> <param-value>/opencms/,
> /resources/,
> /export/,
> /setup/,
> /update/,
> /webdav/,
> /opencms-errorhandler/</param-value>
> </init-param>
> <init-param>
> <param-name>prefix</param-name>
> <param-value>/opencms</param-value>
> </init-param>
> </filter>
> <filter-mapping>
> <filter-name>UriRewriteFilter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> 3、change contex parameter “OpenCmsServlet” from “/opencms/*” to "/*"
>
> If you have more uri to excluded from VFS, add it to the "ignore-uri"
> parameter.
>
> P.S.,Thanks to the opencms team, you have done a great job.
>
>
>
> 2011/6/17 Deiverson Silveira <deiverson at solutioncms.com>
>
>> Hi Alejandro,
>>
>> Proxy Pass:
>>
>> http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/
>>
>> (You dont need use ajp, you can use redirect for http)
>>
>> Mod_JK and Rewrite:
>>
>> http://www.sebastian.himberger.de/comp/tutorials/opencms/apache-integration/
>>
>> Regards,
>>
>> Deiverson Silveira
>>
>>   2011/6/17 Alejandro García Gil <alejandro.garcia.gil at gmail.com>
>>
>>>  Hi,
>>>
>>> I would like to eliminate 'opencms/opencms in the url of my website
>>>
>>> I've seen different methods but they do not see correctly the area of
>>> administration
>>>
>>> I have opencms 7.5.2
>>>
>>>
>>> _______________________________________________
>>> This mail is sent to you from the opencms-dev mailing list
>>> To change your list options, or to unsubscribe from the list, please
>>> visit
>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>>
>>
>>
>>
>> --
>> *
>>  www.solutioncms.com
>>   The Brazilian
>> Official Provider OpenCms
>> *
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110706/d3ac043c/attachment.htm>


More information about the opencms-dev mailing list