|
Apache RewriteRule is driving me nuts
I've just finished installing Mandrake 10.0 including apache and Zope.
I want to use apache to server some normal pages and to server zope pages as well.
This is what i've written in my Vhosts:
NameVirtualHost *:80
<VirtualHost *:80>
Servername mydomain
DocumentRoot /var/www/html
</VirtualHost>
### the above is to catch all requests that don't have a valid servername
<VirtualHost *:80>
ServerName mydomain
RewriteEngine on
RewriteRule ^/(.*) xxx.xxx.xxx.xxx:8080/mandrake/$1 [L,P]
ErrorLog /var/log/apache/testerror.log
</VirtualHost>
#this one is to send a request from mydomain to my zope url
##end
now my index page from /var/www/html is being served fine, but when i enter mydomain i get this message in my browser:
Forbidden
You don't have permission to access / on this server.
The log file has this line in it:
client denied by server configuration: proxy:xxx.xxx.xxx.xxx:8080/mandrake/
I don't understand this at all since i am not pointing to / but to my zope url.
Can someone pelase tell me what i am doing wrong?
the server is in my own private network here, that's why i've entered the xxx address :P
|