[Zope-CMF] Subdomain in folder in CMF site

Gitte Wange gitte at mmmanager.org
Mon Nov 10 11:47:41 EST 2003


Mandag 10 november 2003 05:25   skrev Sune Brøndum Wøller:
> Hi Gitte !
>
> > I don't think I need access rules because I have Apache in front
> > - setting up
> > the instance with VirtualHostMonster did the trick ;-) (Don't know why we
> > having been using that before - looks much easier to use than SiteRoot's)
> >
> > Anyway - it rewrites urls for more than it needs.
> > In the subdomain page, I have a catalog search that lists some
> > items located
> > elsewhere on the portal.
> > Usually the url to them is e.g. www.mydomain.com/item1 but now
> > they have been
> > rewritten to folder.mydomain.com/item1
> >
> > Anyway I can avoid that?
> > Because at a later stage I need to make a catalog search on the
> > Identifier,
> > and then it finds nothing because the domain is wrong :-(
>
> what does your apache rewrite rules look like ?

RewriteRule ^/(.*) 
http://[IP-NUMBER]:10180/VirtualHostBase/http/sub.mydomain.com:80/www/subfolder/VirtualHostRoot/$1 
[L,P]

Taken from the Zope Book :-)
Something wrong there ?

-- 
Gitte Wange
Technical Manager

Email: gitte at mmmanager.org
Web: http://www.mmmanager.org
Tlf: +45 36 46 20 02

(On the statement print "42 monkeys"+"1 snake") BTW,
both perl and Python get this wrong. Perl gives 43
and Python gives "42 monkeys1 snake",
when the answer is clearly "41 monkeys and 1 fat snake".

    -- Jim Fulton, 10 Aug 1999




More information about the Zope-CMF mailing list