LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-30-2004, 08:10 AM   #1
ijsman77
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
</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
 
Old 04-06-2004, 10:38 AM   #2
ugge
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, 11:36 AM   #3
ugge
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, 03:25 AM   #4
ijsman77
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
 
  


Reply


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 10:28 PM
Apache driving me nuts! metaldude Linux - Newbie 2 07-24-2005 07:45 AM
Driving me nuts!! jappstam12345 Linux - Newbie 7 03-11-2005 06:51 PM
This is driving me nuts! dareino Fedora 4 06-30-2004 03:17 AM
driving me nuts!!! ihatebillgates Linux - Newbie 6 12-12-2003 08:03 AM


All times are GMT -5. The time now is 05:39 PM.

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