Forum Moderators: phranque

Message Too Old, No Replies

Apache port forwarding

         

grnchevyz

3:23 am on Jan 20, 2006 (gmt 0)

10+ Year Member



I run a webmail server on port 50000.

How do I setup apache to redirect mail.mydomain.com to www.mydomain.com:50000?

Thanks for the help!

jdMorgan

5:01 pm on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



grnchevyz,

Welcome to WebmasterWorld! Please check out our forum charter [webmasterworld.com].

Start with Apache mod_alias, mod_rewrite, and mod_proxy [httpd.apache.org], and see which of those approaches might give you the functionality you want.

Jim

grnchevyz

12:51 am on Jan 21, 2006 (gmt 0)

10+ Year Member



Jim,

Thanks for the info...I tried proxy and the other directives. However, I don't think its a proxy I want to perform...

I may be msitaken here but what I am looking into doing is forwarding requests to popmail.example.com to www.example.com:50000.

I have a good understanding of the apache server but have been out of the configuration loop for about 1 year and can't seem to find the right information.

Any help is greatly appreciated!

- Lou

[edited by: jdMorgan at 1:15 am (utc) on Jan. 21, 2006]
[edit reason] Example.com [/edit]

jdMorgan

1:18 am on Jan 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From Apache ProxyPass [httpd.apache.org] description:

Syntax: ProxyPass path url

This directive allows remote servers to be mapped into the space of the local server; the local server does not act as a proxy in the conventional sense, but appears to be a mirror of the remote server. Path is the name of a local virtual path; url is a partial URL for the remote server.

The other choice is to redirect the request, exposing the true mail server URL, and requiring the port number to be maintained through subsequent requests in order to function.

Jim