Ricardo Newbery-2 wrote:
>
>
> On Jan 5, 2009, at 10:32 PM, Sebastian.Lux wrote:
>
>> This was the very first I tried. The following RewriteRules gave me
>> the
>> error
>> "We're sorry, but that page doesn't exist… "
>> RewriteRule ^/myPortal(/|$)(.*)
>> http://Server2:8000/VirtualHostBase/http/Server1/Plone/
>> VirtualHostRoot/$2
>> [L,P] (I tried this since I use the default root instance of Plone)
>> RewriteRule ^/myPortal(/|$)(.*)
>> http://gonsrc02.sartorius.com:8000/VirtualHostBase/https/gensvn.sartorius.com:443/VirtualHostRoot/$2
>> [L,P]
>> RewriteRule ^/myPortal(/|$)(.*)
>> http://gonsrc02.sartorius.com:8000/Plone/VirtualHostBase/https/gensvn.sartorius.com:443/VirtualHostRoot/_vh_myPortal/$2
>> [L,P] (I tried this since it was a solution working in this forums)
>>
>> I think the main problem is that I want to Rewrite to the default
>> Plone
>> instance which is the root of the Zope db and reachable at
>> Server2:8000 and
>> not Server2/myPortal
>
>
> Huh? Are you just trying random permutations without understanding
> what the path elements mean? A sure recipe to waste a bunch of
> time. :-)
>
> Your last example is close but the zope path is in the wrong place.
> You want the so-called inside-out configuration:
>
> RewriteRule ^/[public_path]($|.*) http://[zope_domain]:[zope_port]/
> VirtualHostBase/http/[public_domain]:[public_port]/[zope_path]/
> VirtualHostRoot/_vh_[public_path]$1
>
> This may look complicated at first but read the documentation a bit
> more carefully and hopefully you'll see that it's really not.
>
> Again...
> http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/VirtualHosting.stx
>
> Ric
>
>
>
> _______________________________________________
> Setup mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/setup
>
>
I read this article twice and understood most of the RewriteRule you posted,
anyway it does not work.
I think this is due to the [zope_path] which might be wrong in my
RewriteRule.
By the way just to make it clear: I do not need to do anything with the VHM
in the zope db itself (e.g. adding mappings). Just having a standard VHM in
the root of zope is enough.
Here is my RewriteRule:
RewriteRule ^/myPortal($|.*)
http://Server2:8000/VirtualHostBase/http/Server1:80/Plone/VirtualHostRoot/_vh_myPortal$1
[L,P]
the bold one is the [zope_path] mentioned in your example above. I replaced
it with the name of the default Plone instance. I think this might be the
mistake
--
View this message in context:
http://n2.nabble.com/Help-with-VirtualHostMonster-tp2112894p2116731.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup