[opencms-dev] new project question

z Donald donzhu2000 at hotmail.com
Mon Jun 23 02:58:02 CEST 2003


hi
i found the real reason why i can't loin opencms workplce when using the 
Apache rewrite and  connecting with mod_jk2----i guess it's the url rewrite 
that kill the http session?

i turned the debug flag on in the two class: 
com.opencms.workplace.CmsLoginNew and com.opencms.core.CmsHttpSevlet, and 
found the new session established in the former class was 
invalidated in the later. so opencms had to authenticated the new request 
to workplace after i login in succesfully.

is it impossible to change to the Tomcat root.

Can anyone help.

z.Donald.

>From: "zhu wei dong" <donzhu2000 at hotmail.com>
>Reply-To: opencms-dev at opencms.org
>To: opencms-dev at opencms.org
>Subject: Re: Re[5]: [opencms-dev] new project question
>Date: Sat, 21 Jun 2003 10:34:10 +0800
>
>hi
>
>i follow your discussion about Apache&opencms configuration and run 
>into the same problem as you--can't login into opencms workplace.
>
>Then i check the login template(/system/login/index) and find that 
>adjusting the url don't work also. The reason is:
>  1)the login template use javascripts "window.open(URL, name, 
>options, ...)"  to open a new window, Apache can't capture the URL 
>in window.open() function and rewrite it, so what the window shows 
>is the still "/system/workplace/action/index.html"--missing the 
>context path and servlet path.
>  2)if adjusting the url in the login template, i had to adjust many 
>urls in the workplace--too many "window.open(URL, name, options, 
>...)". :(
>
>  So, it seems that we are not in the correct direction.
>
>  I wonder how the opencms website(www.opencms.org) sovle it.
>
>Donald.
>
>
>>From: "Bryan LaPlante" <blaplante at netwebapps.com>
>>Reply-To: opencms-dev at opencms.org
>>To: <opencms-dev at opencms.org>
>>Subject: Re: Re[5]: [opencms-dev] new project question
>>Date: Fri, 20 Jun 2003 12:14:10 -0500
>>
>>Oh right, I remember looking at the template that servers that up. 
>>Maybe
>go
>>in and look at the url for those frames and adjust the url used to 
>>load
>the
>>admin.
>>
>>Bryan LaPlante
>>
>>----- Original Message -----
>>From: "Alexander Langer" <al at al-arenal.de>
>>To: "Bryan LaPlante" <opencms-dev at opencms.org>
>>Sent: Friday, June 20, 2003 11:55 AM
>>Subject: Re[5]: [opencms-dev] new project question
>>
>>
>> > Nope. After that I get the frameset of the workplace, but with 
>>an
>> > error message... :(
>> >
>> > > can't you just login directly with
>> > > http://domain:8080/opencms/opencms/system/login
>> >
>> > > ----- Original Message -----
>> > > From: "Alexander Langer" <al at al-arenal.de>
>> > > To: "Alexander Langer" <opencms-dev at opencms.org>
>> > > Sent: Friday, June 20, 2003 11:46 AM
>> > > Subject: Re[3]: [opencms-dev] new project question
>> >
>> >
>> > >> Unfortunately this works fine for the site, but logging into 
>>OpenCMS
>> > >> after this is just impossible. :(
>> > >>
>> > >> Does anyone know a solution?
>> > >>
>> > >> > After getting mod_jk2 to work, got this in my httpd.conf in 
>>the
>> > >> > virtual host section:
>> > >>
>> > >> > RewriteEngine on
>> > >> > RewriteRule /(.*) /opencms/opencms/$1 [PT]
>> > >> > Alias / /opt/tomcat/webapps
>> > >> > JkMount /* testWorker
>> > >>
>> > >> > and had to change
>> > >>
>> > >> > url_prefix_http=/${WEB_APP_NAME}/opencms
>> > >>
>> > >> > into
>> > >>
>> > >> > url_prefix_http=
>> > >>
>> > >> > in the opencms.properties file. My aim was to get direct 
>>access to
>>the
>> > >> > opencms root directory when accessing www.domainname.tld 
>>and it
>works
>> > >> > perfectly.
>> > >>
>> > >> >> that will work thank you
>> > >>
>> > >> >> ----- Original Message -----
>> > >> >> From: "Steve Goyette" <stevegg at telus.net>
>> > >> >> To: <opencms-dev at opencms.org>
>> > >> >> Sent: Thursday, June 19, 2003 12:24 PM
>> > >> >> Subject: RE: [opencms-dev] new project question
>> > >>
>> > >>
>> > >> >>> Hi,
>> > >> >>>
>> > >> >>> I don't know whether or not you're using Apache but if 
>>you are
>you
>>can
>> > >> >>> use URL re-writing to do this.
>> > >> >>>
>> > >> >>> Just place this in the virtual host entry for your domain 
>>in the
>> > > apache
>> > >> >>> httpd.conf file (possibly the vhost/Vhost.conf file)
>> > >> >>>
>> > >> >>> RewriteEngine on
>> > >> >>> RewriteRule /(.*) /opencms/opencms/mymodule/$1 [PT]
>> > >> >>>
>> > >> >>> Hope that helps,
>> > >> >>>
>> > >> >>> Steve
>> > >> >>>
>> > >> >>>
>> > >> >>> -----Original Message-----
>> > >> >>> From: opencms-dev-admin at opencms.org
>> > >> >>> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Bryan
>LaPlante
>> > >> >>> Sent: Thursday, June 19, 2003 3:21 AM
>> > >> >>> To: opencms-dev at opencms.org
>> > >> >>> Subject: [opencms-dev] new project question
>> > >> >>>
>> > >> >>> After reading most all of the documentation I just need 
>>to
>confirm
>> > > that
>> > >> >>> I am
>> > >> >>> thinking in the right direction.
>> > >> >>>
>> > >> >>> To create a new web site I will essentially be creating a 
>>module
>is
>> > > that
>> > >> >>> right. In that module I will create a master template in 
>>the
>form
>>of
>> > > an
>> > >> >>> index.html page under the templates directory of my new 
>>module
>and
>> > > then
>> > >> >>> create my site design templates under a folder called
>jsptemplates.
>> > >> >>>
>> > >> >>> If I am right about the above I will be creating a new 
>>project
>>based
>> > > on
>> > >> >>> the
>> > >> >>> directory structure created above. I started to create a 
>>project
>> > >> >>> declaring a
>> > >> >>> folder that did not exist in any module and got an error, 
>>so
>that
>> > > leads
>> > >> >>> me
>> > >> >>> to believe that the above mentioned is true.
>> > >> >>>
>> > >> >>> I have not been able to find info in the docs or demos as 
>>to how
>I
>>can
>> > >> >>> run
>> > >> >>> my new web site while hiding the fact that I am using 
>>opencms,
>in
>> > > other
>> > >> >>> words I want to run http://www.mydomain.com/ and have 
>>that open
>> > >> >>> 
>>http://www.mydomain.com/opencms/opencms/mymodule/index.html is
>this
>> > >> >>> possible?
>> > >> >>>
>> > >> >>> Thanks for everyone's help in the past and as I get more
>experience
>> > > with
>> > >> >>> opencms I hope I can be of assistance to others.
>> > >> >>>
>> > >> >>> Bryan LaPlante
>> > >> >>>
>> > >> >>> _______________________________________________
>> > >> >>> 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
>> > >> >>>
>> > >> >>>
>> > >> >>> _______________________________________________
>> > >> >>> 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
>> > >> >>>
>> > >>
>> > >> >> _______________________________________________
>> > >> >> 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
>> > >>
>> > >>
>> > >>
>> > >> > al
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> al
>> > >>
>> > >> --
>> > >> Alexander Langer
>> > >> homepage: http://www.al-arenal.de
>> > >> mailto: langer at al-arenal.de
>> > >>
>> > >>
>> > >> _______________________________________________
>> > >> 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
>> > >>
>> >
>> > > _______________________________________________
>> > > 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
>> >
>> >
>> >
>> > al
>> >
>> > --
>> > Alexander Langer
>> > homepage: http://www.al-arenal.de
>> > mailto: langer at al-arenal.de
>> >
>> >
>> > _______________________________________________
>> > 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
>> >
>>
>>_______________________________________________
>>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
>
>_________________________________________________________________
>免费下载 MSN Explorer:   http://explorer.msn.com/lccn/
>
>_______________________________________________
>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

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  




More information about the opencms-dev mailing list