logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Port redirection for APACHE
Author
drmed



Joined: 22 May 2006
Posts: 6

PostPosted: Tue 23 May '06 20:23    Post subject: Port redirection for APACHE Reply with quote

I am running a Ndaemon web server at the default port 3000 and I am trying to achieve something:

when people type http://webmail.myserver.com apache should be used as proxy and somewhat "pipe" it through to the mailserver's webserver on port 3000. Ndaemon's website had something but it didn't work. Can somebody help?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 23 May '06 20:46    Post subject: Reply with quote

if you have installed PHP and it is an webinterface
create a index.php in the webroot from webmail.myserver.com

Code:

<?php
header("Location: http://myserver.com:3000/");
?>
Back to top
drmed



Joined: 22 May 2006
Posts: 6

PostPosted: Tue 23 May '06 20:49    Post subject: Reply with quote

But this will redirect the person to the server, won't it? Will it be transparent to the user? I would like to creat a virtual server, that would proxy and invisibly act as proxy between the user on his internet browser and the port 3000 on my server without him realizing that he is actually on that port.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 23 May '06 20:54    Post subject: Reply with quote

In your case
Code:

ProxyRequests Off
ProxyPass / http://myserver:3000


From a client perspective, a reverse proxy looks just like a standard Web server. It doesn't require any special configuration to
operate (and if it did, it wouldn't be anywhere near as useful). The only real requirement is to ensure the forward proxy is
switched off, which is done using the ProxyRequests directive:ProxyRequests Off
ProxyPass /marketing http://marketing.mcslp.com
ProxyPassReverse /marketing http://marketing.mcslp.com

You can also stop subdirectories of a directory being passed through by using an exclamation mark (!) as the destination URL. For
example, to reverse proxy /marketing, but not /marketing/contact you would use:

ProxyPass /marketing/contact !
ProxyPass /marketing http://marketing.mcslp.com
Back to top


Reply to topic   Topic: Port redirection for APACHE View previous topic :: View next topic
Post new topic   Forum Index -> Apache