LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 05-29-2009, 02:32 AM   #1
eje211
LQ Newbie
 
Registered: Sep 2007
Location: London, UK
Distribution: Gentoo and Ubuntu
Posts: 8

Rep: Reputation: 0
mod_rewrite mystery


Yes! I have a problem with mod_rewrite! It's not very original, I know, but it does bother me. Can anyone explain this:

I'm trying to install Zope. This is in .htaccess and works without a problem:
Code:
   RewriteRule ^(.*) \
      http://127.0.0.1:8080/VirtualHostBase/http/example.com:80/Plone/VirtualHostRoot/$1 [L,R]
But THIS gives me a "Bad Gateway" error:
Code:
   RewriteRule ^(.*) \
      http://127.0.0.1:8080/VirtualHostBase/http/example.com:80/Plone/VirtualHostRoot/$1 [L,P]
The difference is that the first one is a redirect and the second is a proxy.

The localhost:8080 page opens without a glitch. If I change the rewrite so that it goes as a proxy to Wikipedia, it works too.

I'm trying to install this Zope site on a commercial host. I have no access to the config files of Apache nor to the log files, thus my using .htaccess.

But EVERYTHING works on its own: the proxy, the localhost page, Zope, everything. It just does not work when it's put together! Could it be something as silly as a timeout? What else? Does anyone have an idea?

Thanks.

Last edited by eje211; 05-29-2009 at 06:45 AM.
 
  


Reply

Tags
apache, modrewrite


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A Comcast Mystery rdwinders General 4 01-21-2007 02:52 AM
mystery jhon Linux - Networking 1 09-01-2004 09:38 AM
Apache mystery drphear Linux - Software 0 02-15-2004 04:25 PM
The font mystery MATJA_KAE_92 Linux - Newbie 1 02-02-2004 09:52 AM
mystery process sopiaz57 Linux - Security 3 11-12-2003 12:36 PM


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

Main Menu
 
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
Open Source Consulting | Domain Registration