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?