Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-30-2004, 07:10 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
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

### the above is to catch all requests that don't have a valid servername

<VirtualHost *:80>
ServerName mydomain
RewriteEngine on
RewriteRule ^/(.*)$1 [L,P]
ErrorLog /var/log/apache/testerror.log

#this one is to send a request from mydomain to my zope url


now my index page from /var/www/html is being served fine, but when i enter mydomain i get this message in my browser:

You don't have permission to access / on this server.

The log file has this line in it:
client denied by server configuration:

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
Old 04-06-2004, 09:38 AM   #2
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I'm a bit lost in the setup.
What is the URL for your ordinary domain, and what is the URL for your Zope content?
Also where are the ordinary web site located locally?
Where is the Zope content located locally?

As far as I can see from the rewriterule you match an address but don't substitute it with anything.
What I have read first column i rewriterule, second is pattern, third is substitution and fourth is flags.
Old 04-06-2004, 10:36 AM   #3
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Have spent a little more time thinking.
What actually are you trying to accomplish?
How do you want it to work?
Wouldn't you be able to serve normal content as well as Zope content without rewriting the URL?
Old 04-07-2004, 02:25 AM   #4
LQ Newbie
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I got it working already, the rewriterule uses reverse proxy and that wasn't allowed yet


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - it's driving me nuts! n4ogl Linux - Newbie 4 11-13-2005 09:28 PM
Apache driving me nuts! metaldude Linux - Newbie 2 07-24-2005 06:45 AM
Driving me nuts!! jappstam12345 Linux - Newbie 7 03-11-2005 05:51 PM
This is driving me nuts! dareino Fedora 4 06-30-2004 02:17 AM
driving me nuts!!! ihatebillgates Linux - Newbie 6 12-12-2003 07:03 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration