Page 1 of 1

Apache redirects from [host]:8080 to [host]

Posted: Fri Jan 05, 2007 4:09 am
by tores
Hi,

For some reason, when doing a POST, Apache (ver 2.2.2) redirects to the same host but at a different port. Basically I experience the following chain of events:
1. Do POST request to [host]:8080/[path]
2. Apache returns 302 Found, and redirects to [host]/[path], which doesn't exist. (There is an IIS server listening on port 80, though).
The path does exist, however, at port 8080.

I do not have any redirects in the httpd.conf file or in any .htaccess files.

Anyone got ideas?

Regards,
tores

Posted: Fri Jan 05, 2007 4:18 am
by tores
It turns out my problem was some header redirection done in PHP not handling URL's containing port numbers correctly.