Thanks for your help and references. I am closer than I was before,
but still not there yet :( And I still suspect it is an Apache
problem as Zope seems to be performing as expected. My husband
thinks that all of this is incorrect and that things have to be done
in the manner outlined in the MacOSX document here: http://plone.org/
documentation/tutorial/hosting-mac/apache
However, whether I do things as you have described or do them as
outlined in the tutorial, I get the same end result.
There is something extremely weird about the Mac OSX Tiger Server:
Apache 1.3 and Apache 2 are both loaded and modifying either of the
httpd.conf files affects the Apache 1.3 (running) server. To the
best of my knowledge, Apache 2 is not turned on. But still, I had
more luck modifying the Apache 2 conf. I know this makes no sense!
So I had been modifying that httpd.conf last night, and continued on
in that file:
On 7 Dec 2005, at 08:00, Philip Kilner wrote:
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>
I had tried it inside the virtual host block, which caused Apache to
fail to start and kick up several errors, but I didn't know about
RewriteEngine On. I now have the Virtual Hosts formatted exactly as
you have shown (noting the [L,P] as opposed to [P] in the earlier
example given to me). However, while Apache no longer fails to
start, I still have the same behaviour as before:
Apache starts with no errors but when going to any of the domain
names
in a browser just brings up the generic Apache page (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
Thank you, this is useful to finally understand what is going on in
Zope. I note that one of their test suggestions is to go to the URL
in the Rewrite Rule, in my case I used http://127.0.0.1:8284/
VirtualHostBase/http/
www.hypermobility.com:80/Hypermobility/VirtualHostRoot/$1
This brought up an oddly formatted and truncated version of the
page. I'm guessing that it's just giving me the Zope rendering
rather than Plone. (Using or losing the $1 at the end seems to make
no difference). Thus, is it the stuff in brackets that tells it to
render in Plone? (The [P] or [L,P]?)
You may also want to play with the Rewrite Rule Witch at: -
http://betabug.ch/zope/witch
Wow, that's handy :) But I don't understand why it gives two Rewrite
Rules?
**
So, after being told off for using the Apache 2 httpd.conf file (but
it was working, sort of!), I returned that file to its original state
and started to work solely within the Apache 1.3 framework, which has
been modified somewhat by Apple. Things got far more complicated,
and no less successful.
In trying things as outlined on http://plone.org/documentation/
tutorial/hosting-mac/apache I set up the domain via the Server Admin
Tool, using a dummy directory I made (/usr/local/zope/htdocs) as
instructed by that page for the docroot. (I tried a few combinations
within this but with no appreciable difference; what I describe here
is thus exactly as instructed in the Plone how-to referenced above.)
I then tried editing the site-specific.conf and modified the rewrite-
rule from .* - [F] to ^/(.*) http://127.0.0.1:8284/VirtualHostBase/
http/www.hypermobility.com:80/Hypermobility/VirtualHostRoot/$1 [L,P]
Still the same behaviour, attempting to access that domain name
brought up the default Apache (as modified by Apple) page.
There's a lot of other stuff in that default site-specific.conf
(which I have copied in full below), I have tried deleting it and and
formatting a VirtualHost block just as you wrote above; Apache failed
to load and gave me an absurdly cryptic error message ("See server
admin") that couldn't tell me what to do next. I can make just the
change in the rewrite rule and Apache loads but does not direct to my
Plone site (still).
Below is the "default" site conf file as generated by the Mac Server
Admin tool, as configured according to that site referenced above. I
have tried changing the RewriteRule and/or the port at the top of the
Virtual Host declaration; neither does me any good.
I've contemplated changing the rewrite rule *and* removing the
RewriteCond line and leaving the rest of the file as is. But I don't
know if this will be any better.
I'm tearing my hair out as I've been at this for over three hours
straight and still am exactly where I was last night :(
Help would be appreciated before I feel the need to break something! :)
.conf file as generated when using the Server Admin Tool (It always
inserts port 16080 even with performance caching turned off;
changingthis to :80 makes no appreciable difference.):
## Default Virtual Host Configuration
<VirtualHost *:16080>
ServerName www.hypermobility.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot "/usr/local/zope/htdocs"
DirectoryIndex index.html index.php
CustomLog "/var/log/httpd/access_log" "%{PC-Remote-Addr}i %l
%u %t \"%r\
" %>s %b"
ErrorLog "/var/log/httpd/error_log"
ErrorDocument 404 /error.html
<IfModule mod_ssl.c>
SSLEngine Off
SSLLog "/var/log/httpd/ssl_engine_log"
SSLCertificateFile "/etc/certificates/Default.crt"
SSLCertificateKeyFile "/etc/certificates/Default.key"
SSLCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!
SSLv2:+EXP:
+eNULL"
</IfModule>
<IfModule mod_dav.c>
DAVLockDB "/var/run/davlocks/.davlock100"
DAVMinTimeout 600
</IfModule>
<Directory "/usr/local/zope/htdocs">
Options All -Indexes -ExecCGI -Includes +MultiViews
AllowOverride None
<IfModule mod_dav.c>
DAV Off
</IfModule>
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
<IfModule mod_alias.c>
</IfModule>
LogLevel warn
</VirtualHost>
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup