Quantcast

Remove 'opencms/opencms' of url

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Remove 'opencms/opencms' of url

Alejandro77
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Remove 'opencms/opencms' of url

3digits - Pablo Beltrán

Hi,

 

Try this:

 

http://opencms-wiki.org/Removing_/opencms/opencms_from_site_url

 

Regards,

____________________
Pablo Beltrán
3digits
[hidden email]
+34 902 313 333
+34 971 439 988
____________________

Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial y/o datos de carácter personal, cuya difusión está regulada por la Ley Orgánica de Protección de Datos y la Ley de Servicios de la Sociedad de la Información. Si usted no es el destinatario indicado (o el responsable de la entrega al mismo), no debe copiar o entregar este mensaje a terceros bajo ningún concepto. Si ha recibido este mensaje por error o lo ha conseguido por otros medios, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su eliminación irreversible. Las opiniones, conclusiones y demás información incluida en este mensaje que no estén relacionadas con asuntos profesionales de nuestra empresa no están respaldadas por la misma.

 

De: [hidden email] [mailto:[hidden email]] En nombre de Alejandro García Gil
Enviado el: viernes, 17 de junio de 2011 13:33
Para: [hidden email]
Asunto: [opencms-dev] Remove 'opencms/opencms' of url

 

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Remove 'opencms/opencms' of url

Deiverson Silveira-2
In reply to this post by Alejandro77
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:

Regards,

Deiverson Silveira

2011/6/17 Alejandro García Gil <[hidden email]>
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



--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Remove 'opencms/opencms' of url

Georgi Naplatanov
In reply to this post by Alejandro77
Hi.

It is the easiest way to do -
http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/

and works perfectly with Tomcat 6 and Apache HTTPD 2.2.

Tomcat 7 does not support  emptySessionPath attribute in connector
configuration, but there is a workaround -

http://stackoverflow.com/questions/3980392/tomcat-7-session-cookie-path

, but I haven't tested this configuration.

HTH

Best regards
Georgi

On 06/17/2011 02:33 PM, � wrote:

> 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

_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Remove 'opencms/opencms' of url

FH Subscriptions
 Hi,

the context.xml sessionpath configuration for Tomcat 7 works flawlessly
with OpenCms and Sebastian's proxy settings.

\Fabian

On 17.06.2011 14:46, Georgi Naplatanov wrote:

> Hi.
>
> It is the easiest way to do -
> http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/
>
> and works perfectly with Tomcat 6 and Apache HTTPD 2.2.
>
> Tomcat 7 does not support  emptySessionPath attribute in connector
> configuration, but there is a workaround -
>
> http://stackoverflow.com/questions/3980392/tomcat-7-session-cookie-path
>
> , but I haven't tested this configuration.
>
> HTH
>
> Best regards
> Georgi
>
> On 06/17/2011 02:33 PM, � wrote:
>> 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
> _______________________________________________
> 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


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Remove 'opencms/opencms' of url

Georgi Naplatanov
Hi Fabian.

It is good to be known that it works for Tomcat 7.

Have you done any performance tests for comparison with Tomcat 6 ?

Best regards
Georgi

On 06/17/2011 05:17 PM, Fabian Huschka wrote:

>   Hi,
>
> the context.xml sessionpath configuration for Tomcat 7 works flawlessly
> with OpenCms and Sebastian's proxy settings.
>
> \Fabian
>
> On 17.06.2011 14:46, Georgi Naplatanov wrote:
>> Hi.
>>
>> It is the easiest way to do -
>> http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/
>>
>> and works perfectly with Tomcat 6 and Apache HTTPD 2.2.
>>
>> Tomcat 7 does not support  emptySessionPath attribute in connector
>> configuration, but there is a workaround -
>>
>> http://stackoverflow.com/questions/3980392/tomcat-7-session-cookie-path
>>
>> , but I haven't tested this configuration.
>>
>> HTH
>>
>> Best regards
>> Georgi
>>
>> On 06/17/2011 02:33 PM, � wrote:
>>> 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
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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

_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Remove 'opencms/opencms' of url

Daniel-381
In reply to this post by Deiverson Silveira-2
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 <[hidden email]>
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:

Regards,

Deiverson Silveira

2011/6/17 Alejandro García Gil <[hidden email]>
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



--
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



_______________________________________________
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

UriRewriteFilter.java (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Remove 'opencms/opencms' of url

Daniel-381
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 <[hidden email]>写道:
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 <[hidden email]>
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:

Regards,

Deiverson Silveira

2011/6/17 Alejandro García Gil <[hidden email]>
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



--
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




_______________________________________________
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
Loading...