homepage Welcome to WebmasterWorld Guest from 174.129.103.100
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
moheybee




msg:4259265
 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:
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?

 

jdMorgan




msg:4260823
 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.

Jim

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