Hi Juliann,

Juliann wrote:
>> Per site:
>>
>>     Create an Apache VirtualHost for every site.
>>
>>     Put on one line:
>>
>>     RewriteRule ^/(.*)
>> http://hostname-of-server:port-of-zope/VirtualHostBase/http/
>> www.domain.com:80/plone-site-id/VirtualHos
>> tRoot/$1 [P]
> 
> 
> I'm sorry, I must be doing this wrong.  I made the virtual hosts like  so:
> <VirtualHost *:80>
> ServerName  www.juliann.net
> </VirtualHost>
> 
> (I didn't put a docroot because I guessed that would interfere with  or
> override the rewrite rule..)
> 
> and then added below each:
> RewriteRule ^/(.*) http://127.0.0.1:8284/VirtualHostBase/http/
> www.myweb.com:80/MyWeb/VirtualHostRoot/$1 [P]
> 

The rewrite rule needs to be /inside/ the VirtualHost block, like so: -

<VirtualHost 192.168.1.1:80>
ServerName www.xfr.co.uk
ErrorLog logs/www.xfr.co.uk-error.log
TransferLog logs/www.xfr.co.uk-access.log
RewriteEngine On
RewriteRule ^/(.*)
http://192.168.1.1:8080/VirtualHostBase/http/www.xfr.co.uk:80/plones/www_xfr_co_uk/VirtualHostRoot/$1
[L,P]
</VirtualHost>


> (8284 is the zope management port, I tried 8204 which is the "plone' 
> port but the result was the same.)
> 
> Apache starts with no errors but when going to any of the domain  names
> in a browser just brings up the generic Apache (well, apple's  version).
> 
> I'm sure I must be doing something stupid, but I have no experience 
> with apache.
> 

This is a fiddly thing to set up - if you have not already, I'd
recommend spending some time getting to grips with the virtual hosting
chapter of the Zope book at: -

        http://www.plope.com/Books/2_7Edition/VirtualHosting.stx

You may also want to play with the Rewrite Rule Witch at: -

        http://betabug.ch/zope/witch

HTH


-- 

Regards,

PhilK

Email: [EMAIL PROTECTED]
PGP Public key: http://www.xfr.co.uk
Voicemail & Facsimile: 07092 070518

"You'll find that one part's sweet and one part's tart:
say where the sweetness and the sourness start."
- Tony Harrison
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to