[_] Plone Configuration
Chris Keegan
nospam at theisolationist.com
Sun Jun 1 16:33:07 BST 2008
Thanks for all the pointers, guys! Still haven't got the <http-server> stuff sorted but that'll wait til the week. Chris... On Sat, May 31, 2008 at 2:49 PM, Dan Fairs <dan.fairs at gmail.com> wrote: > > > FTW! (Almost) > > > > fwiw, I can *never* remember the correct incantation for the > RewriteRule. This normally gives me a starting point: > > http://betabug.ch/zope/witch/ > > Cheers, > Dan > > > > I've now got it working with the following virtual host config ( > > plone.mydomain.com): > > > > <VirtualHost *:80> > > ServerAlias plone.mydomain.com > > > > ProxyRequests Off > > <Proxy *> > > Order deny,allow > > Allow from all > > </Proxy> > > ProxyPreserveHost On > > ProxyPass / > > > http://plone.mydomain.com:8080/VirtualHostBase/http/plone.mydomain:80/Plone/VirtualHostRoot/ > > </VirtualHost> > > I tried using various combinations of Oliver's suggestion but I just > > kept > > getting internal server errors and couldn't figure out why. I > > removed the > > ProxyPassReverse variable because I didn't really know what it did, > > which is > > probably not good but I wasn't sure what the correct format was for > > the > > value anyway. > > > > On the downside if I use <http-server>address 127.0.0.1:8080</http- > > server> > > it stops the above working and doesn't prevent direct port access ( > > www.otherdomain.com:8080), which is a bummer. > > Thanks for your help guys. > > > > Chris... > > > > > > On Sat, May 31, 2008 at 12:03 PM, Chris Keegan < > nospam at theisolationist.com > > > > > wrote: > > > >> Thanks for the information, guys. I'm playing with it now and I'll > >> let you > >> know the final configuration that made it work for me when it does. > >> Having a > >> few problems with internal server errors at the moment though. > >> > >> Chris... > >> > >> On Sat, May 31, 2008 at 1:00 AM, Matt Hamilton > >> <matth at netsight.co.uk> > >> wrote: > >> > >>> > >>> On 30 May 2008, at 18:37, Chris Keegan wrote: > >>> > >>>> Hi (_), > >>>> > >>>> I can't help but have noticed a degree of enthusiasm for Plone on > >>>> the list > >>>> so I'm hoping someone will be able to help me. I've just installed > >>>> it behind > >>>> apache2 and I want to access it using: plone.mydomain.com rather > >>>> than > >>>> www.mydomain.com:8080/Plone (for the sake of default-ness). There's > >>>> a degree > >>>> of help on the Plone site and I've (I think) got it working using > >>>> virtual > >>>> host monster and redirects ( > >>>> http://plone.mydomain.com:8080/VirtualHostBase/http/ > >>>> plone.mydomain.com:80/Plone/VirtualHostRoot/$1< > http://plone.mydomain.com/Plone/VirtualHostRoot/$1 > >>>> > > >>> ). > >>>> But I get nasty looking URL's in the browser that on the whole I'd > >>>> rather > >>>> avoid if possible. Is that just a side effect of the way re-directs > >>>> work? > >>>> or a symptom of my having not done it right? (the most probable > >>>> answer). > >>> > >>> You are close :) > >>> > >>> You are doing a redirect there, but need to be doing a proxy request > >>> through to zope instead. Look at Oliver's post, but put in the > >>> concoction above > >>> > >>> so you have: > >>> > >>> ProxyPass / http://plone.mydomain.com:8080/VirtualHostBase/http/ > >>> plone.mydomain.com:80/Plone/VirtualHostRoot/< > http://plone.mydomain.com/Plone/VirtualHostRoot/ > >>> > > >>> > >>> or if using a rewrite rule > >>> > >>> RewriteRule (.*) http://plone.mydomain.com:8080/VirtualHostBase/ > >>> http/ > >>> plone.mydomain.com:80/Plone/VirtualHostRoot/$1< > http://plone.mydomain.com/Plone/VirtualHostRoot/$1 > >>> >[P] > >>> > >>> (all on one line) > >>> > >>> > >>>> Also, since I'm hosting multiple domains off one IP I'd like to > >>>> avoid *:8080 > >>>> delivering the Plone page. The Plone site suggests this can be > >>>> done by > >>>> altering zope.conf so that it ignores everything apart from > >>>> 127.0.0.1 and > >>>> thus only responds to the apache redirects but it doesn't really > >>>> say how to > >>>> achieve this. I tried adjusting the address as follows <http- > >>>> server>address > >>>> 127.0.0.1</http-server> but that doesn't seem to work (probably > >>>> because it's > >>>> wrong). > >>> > >>> you missed the port number off, you need > >>> > >>> <http-server>address 127.0.0.1:8080</http-server> > >>> > >>> -Matt > >>> > >>> -- > >>> Matt Hamilton > matth at netsight.co.uk > >>> Netsight Internet Solutions, Ltd. Understand. Develop. > >>> Deliver > >>> http://www.netsight.co.uk +44 (0)117 > >>> 9090901 > >>> Web Design | Zope/Plone Development & Consulting | Co-location | > >>> Hosting > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> -- > >>> underscore_ list info/archive -> > >>> http://www.under-score.org.uk/mailman/listinfo/underscore > >>> > >>> > >> > > -- > > underscore_ list info/archive -> > http://www.under-score.org.uk/mailman/listinfo/underscore > > -- > Dan Fairs <dan.fairs at gmail.com> | http://www.stereoplex.com/ > > > -- > underscore_ list info/archive -> > http://www.under-score.org.uk/mailman/listinfo/underscore > >