[opencms-dev] Questions too url_prefix_http

Arash Kaffamanesh kaffamanesh at dmu-world.de
Fri Jan 21 21:13:08 CET 2005


Stefan,

As I understand you, you would like to "get rid of /opencms/opencms/".
There are several topics and solutions for that, which you can search on
this list.
--> google for "get rid of /opencms/opencms/"
The simplest way is to use mod_proxy and mod_rewrite to achieve this.
There are also
several topics about this on this list. In that case, that you have to
use mod_jk or jk2 (which I recommend), I'm not sure, if it works with
mod_rewrite.

But be aware that you can't use https:// with OpenCMS 5.0.1
using mod_proxy to access the workplace, I'm not sure, may be I'm wrong.
I have an Installation with OpenCMS 6 alpha3 on Tomcat 5 / 5.5.4 
and Apache 2.0.52 on Linux which works fine with https://.

To be redirected to http://www.xxx.com/cms/opencms/NewWebpage/,
please create an index.jsp under $CATALINA_HOME/webapps/opencms/ (or in
your case $CATALINA_HOME/webapps/cms/)
and copy the following snippet into it:

<%
  String  url = "http://www.xxx.com/opencms/opencms/path/to/NewWebPage";

  response.sendRedirect( url );
%>

If you want to be redirected to the \NewWebPage\
								\de
								\en
Depending on the clients request on:
http://www.xxx.com
Or
http://www.xxx.de

You shall make this script optional.

Best Regards
Arash Kaffamanesh
- collaborative consultants-
http://www.ece-software.de









-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Stefan
Sabolowitsch
Sent: Freitag, 21. Januar 2005 16:05
To: opencms-dev at opencms.org
Subject: [opencms-dev] Questions too url_prefix_http


Hi all,

I have here OCMS 5.01, Tomcat 5.028 and OS = RHEL clone.
The connection to OCMS is made over mod_jk and Apache 2 (works).

There is the here following JkMount:

JkMount /cms/* ajp13

In the root of OCMS, there are the following directories in that the web
pages is.

\NewWebpage\
	\de
	\en

The following question in addition.

As I can reach it that http_url looks as follows.

http://www.xxx.com/cms/ <http://www.xxx.com/cms/> 

With these URL, I am to come into the following directory.

\NewWebpage\

With the standard Paramter of OCSM the URL is too long.

http://www.xxx.com/cms/opencms/NewWebpage/
<http://www.xxx.com/cms/opencms/NewWebpage/> 


Thanks for each assistance


Stefan

PS: a nice weekend




_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list