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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

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

Post 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
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

Post by tores »

It turns out my problem was some header redirection done in PHP not handling URL's containing port numbers correctly.
Post Reply