Welcome to WebmasterWorld Guest from 54.224.57.95

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Tricky proxy redirect to localhost webserver

It appears it's trying to load two URLs

     
2:38 am on Jan 28, 2011 (gmt 0)

10+ Year Member


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:
http://dev.[domain].com/

But when I tried to load the /admin/ directory I realized there was a problem:
http://dev.[domain].com/admin/

The request is:
dev.[domain].com%2C%20dev.[domain].com/admin/

Yes, that's a comma and a space.

So it's requesting two URLs?

Anyone have any ideas?
9:57 pm on Jan 31, 2011 (gmt 0)

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



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.

Jim
 

Featured Threads

Hot Threads This Week

Hot Threads This Month