How does Apache handle port forwarding?

Posted by vfclists on Server Fault See other posts from Server Fault or by vfclists
Published on 2010-08-16T17:29:12Z Indexed on 2011/03/08 8:12 UTC
Read the original article Hit count: 222

Filed under:
|
|

I setup a localhost portforwarding configuration in the coLinux .conf file, forwarding port 8090 to port 80 in the VM.

When http://localhost:8090 is entered in the browser, I get the correct response from nginx, but with Apache the response get the error /htdocs not found in the log.

However if I do a local port forwarding from 8090 to port 80 via SSH Apache responds fine.

Is there something about the way Apache handles the port redirection that causes it to fail?

PS, For those unfamiliar with coLinux it allows localhost connections to get to the VM by forwarding localhost ports on the Windows host to ports on the VM, as the 10.x.x.x IP it not accessible from the Windows host.

© Server Fault or respective owner

Related posts about apache

Related posts about port