[opencms-dev] multisite: wrong effects on correct settings 2
Paul-Inge Flakstad
flakstad at npolar.no
Tue Jan 12 10:36:46 CET 2010
Hi Edwin
Although perhaps off the original topic, this is still very relevant stuff, so thanks for sharing it - I was not aware of this potential problem at all..!
At the same time, I should also mention that I haven't experiences any issues with SH's suggested setup and redirects (I mostly use them to redirect into language folders; e.g. if http://my.domain.com/ is requested I'll redirect into http://my.domain.com/en/).
I'll try to investigate this a bit further when I have more time. Thanks again. :)
All the best,
Paul
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Edwin Chiu
> Sent: 12. januar 2010 07:29
> To: opencms-dev at opencms.org
> Subject: Re: [opencms-dev] multisite: wrong effects on
> correct settings 2
>
>
> Hi Paul,
>
> It maybe off-topic. But "Sebastian Himberger for
> Tomcat/Apache integration"
> maybe wrongly configuring the ProxyPassReverse directive. Here is the
> article
> (http://www.humboldt.co.uk/2009/02/the-mystery-of-proxypassrev
erse.html) for
> how to configure the ProxyPassReverse properly. And I took
> this as reference
> for configuring the httpd.conf and working on production site.
>
> Thanks
> Edwin
>
>
>
> Paul-Inge Flakstad wrote:
> >
> > Hi Jacek
> >
> > Your opencms-system.xml looks OK, but why are you using
> port 8081 and port
> > 8080? That should not be necessary, and it seems different
> from what I'm
> > used to in our OpenCms multisite setups.
> >
> > To create a multisite setup, it should be sufficient to
> define the site in
> > opencms-system.xml, like you've done. If you're integrating
> Tomcat with
> > Apache, you'll typically also need to append a ServerAlias
> inside the
> > appropriate VirtualHost section Apache's httpd.conf + any other
> > modifications that may be required. Currently, I'm
> consistently using "The
> > simplest solution" (http://tinyurl.com/mdtedg) as suggested
> by Sebastian
> > Himberger for Tomcat/Apache integration, because it is simple and it
> > works.
> >
> > As for the strange behaviour you are experiencing with the
> files, I'd
> > clear all OpenCms cache (from the OpenCms Administration
> view), and also
> > clear the "export" folder under
> ${TOMCAT_HOME}/webapps/${OPENCMS_WEBAPP}/.
> > Then restart Tomcat.
> >
> > Regarding your DNS, it also seems correct. You want
> requests to be routed
> > to the same OpenCms installation, so using an alias should
> be the way to
> > go. We usually register the domain name used as the
> workplace-server (in
> > opencms-system.xml) in the DNS, and then add an alias for any other
> > domains hosted on the same OpenCms installation.
> >
> > HTH.
> >
> > Best regards,
> > Paul
> >
> >> -----Original Message-----
> >> From: opencms-dev-bounces at opencms.org
> >> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of jacek
> >> grzebyta (RRes-Roth)
> >> Sent: 8. januar 2010 19:02
> >> To: The OpenCms mailing list
> >> Subject: [opencms-dev] FW: multisite: wrong effects on
> >> correct settings 2
> >>
> >> Hi again,
> >>
> >> Now I logout from ssh and checked again. And something
> different for
> >> http://main_1:8081/opencms/opencms/ shows me old version of
> >> /sites/phibase/index.html which is for 100% deleted. Firefox
> >> cache was cleaned several times so it's stored somewhere in
> >> opencms. So, another problem is opencms shows once the
> >> welcome page and another time old version of the phibase/index.html
> >>
> >> Jacek
> >>
> >> Logs are OK
> >>
> >>
> >> -----Original Message-----
> >> From: opencms-dev-bounces at opencms.org
> >> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of jacek
> >> grzebyta (RRes-Roth)
> >> Sent: 08 January 2010 17:49
> >> To: The OpenCms mailing list
> >> Subject: [opencms-dev] multisite: wrong effects on correct settings
> >>
> >> Hi guys,
> >>
> >> Now, I have problem with settings multisite. I cannot find in
> >> google anything about that. The symptoms are:
> >>
> >> http://main.domain:8081/opencms/opencms/ shows
> >> /sites/phibase/index.html
> >>
> >> http://main_1.domain:8081/opencms/opencms/ shows the welcome
> >> opencms page (Congratulations! You have setup OpenCms
> >> successfully.) but with navy-blue/blue background
> >>
> >> htpp://main.domain:8080/opencms/opencms/ shows the welcome
> >> opencms page with normal grey/white background
> >>
> >> and finally http://main_1.domain:8080/ shows the same welcome
> >> page with the same normal background.
> >>
> >> I don't understand that. Google shows my settings are ok
> >> Versions are:
> >>
> >> Your installed OpenCms version is: 7.5.1
> >> Running on Sun Microsystems Inc. Java HotSpot(TM) 64-Bit
> >> Server VM 14.3-b01 mixed mode with Linux 2.6.18-164.9.1.el5 (amd64)
> >>
> >> I don't know if its important: main_1 is DNS alias of main
> >>
> >> My settings are:
> >>
> >> @ opencms-system.xml
> >>
> >>
> >> <sites>
> >> <workplace-server>http://main.domain:8080</workplace-server>
> >> <default-uri>/sites/default/</default-uri>
> >> <site server="main.domain" uri="/sites/default/"/>
> >> <site server="main_1.domain" uri="/sites/phibase/"/>
> >> </sites>
> >>
> >> @ tomcat/conf/server.xml
> >>
> >> <Service name="Catalina">
> >>
> >> <Connector port="8080" protocol="HTTP/1.1"
> >> connectionTimeout="20000"
> >> redirectPort="8443" />
> >>
> >> <!-- Settings for OpenCms server at 8081-->
> >> <Connector port="8081"
> >> enableLookups="false"
> >> maxThreads="150" redirectPort="8443"
> >> proxyName="main_1.domain" proxyPort="80"
> >> debug="0" connectionTimeout="20000"
> >> disableUploadTime="true"
> >>
> >>
> >> Thanks a lot,
> >> Jacek
> >>
> >> _______________________________________________
> >> 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
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/FW%3A-multisite%3A-wrong-effects-on-corr
ect-settings-2-tp27080028p27123197.html
> Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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
>
More information about the opencms-dev
mailing list