homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Tricky proxy redirect to localhost webserver
It appears it's trying to load two URLs

10+ Year Member

Msg#: 4259263 posted 2:38 am on Jan 28, 2011 (gmt 0)
I'm trying to redirect requests for dev.[domain].com to a localhost Django development web server that's not accessible directly on the internet. It's a long story.

It's loading the page and I can see the request coming into the Django development web server, but runs into problems beyond just the root directory.

The rewrite rule is:
RewriteRule (.*) http://localhost:29766/$1 [P]

It seemed to work fine for a request to because it would load the page:

But when I tried to load the /admin/ directory I realized there was a problem:

The request is:

Yes, that's a comma and a space.

So it's requesting two URLs?

Anyone have any ideas?



WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4259263 posted 9:57 pm on Jan 31, 2011 (gmt 0)

You have some other Alias, Redirect, RedirectMatch, or RewriteRule somewhere that is also rewriting this requested URL -- commas and spaces don't appear by magic, so this should be a good clue as to where to look.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved