Koozali.org: home of the SME Server

Redirection to another webserver on internal network

Offline girkers

  • *
  • 296
  • +0/-0
    • gk computer services
Redirection to another webserver on internal network
« on: October 11, 2005, 06:28:04 AM »
I have SME6.5 running in server only mode and have a website on it.  What I am trying to achieve is that I have another webserver on my internal network that I am trying to access externally.

I can not use port rediection on my router as it doesn't exist.

I have tried to create a subdomain of xxx.mydomain.com, but this simply points to www.mydomain.com and not to the internal server which I have specified.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Redirection to another webserver on internal network
« Reply #1 on: October 11, 2005, 08:50:59 AM »
girkers

Try the proxypass contrib by Darrell May
dmc-mitel-proxypass-0.0.1-3.noarch.rpm
It's OK on 6.0 so I assume should work on sme 6.5
...

Offline girkers

  • *
  • 296
  • +0/-0
    • gk computer services
Redirection to another webserver on internal network
« Reply #2 on: October 11, 2005, 09:23:37 AM »
It installed alright, but I can't seem to work it out as to where to put which settings.

I first created virutal domain, xxx.mydomain.com and then used the contrib to point that virtual domain to my internal webserver, but nothing happened.

I then deleted all that and then created a ProxyPass URL, /xxx/ as the path and then entered my target as the internal server.  When I go to mydomain.com/xxx/ I get the message that URL is not found.

To provide a bit more info, I am using SME 6.5 in server only mode and using a dynamic dns server to host my address.

Any other ideas, the Proxy Pass looks right, but I can't seem to get it to work. :(

Offline girkers

  • *
  • 296
  • +0/-0
    • gk computer services
Redirection to another webserver on internal network
« Reply #3 on: October 11, 2005, 09:31:56 AM »
I found that I had to restart httpd as the contrib does not do this automatically.  It would be nice if this was included in version 7.

Offline raem

  • *
  • 3,972
  • +4/-0
Redirection to another webserver on internal network
« Reply #4 on: October 11, 2005, 09:42:09 AM »
girkers

I think a ProxyPass virtual domain entry is what you would be after for your situation ie directed to another server local IP.


>... I am using SME 6.5 in server only mode...

That may be your problem, you may need your server running in server gateway mode for Proxypass to be effective.
It works quite OK on my 6.0 server gateway box forwarding to another server only sme server.


What about trying the hostnames & addresses panel and redirect the www entry for the particular domain ie add a virtual domain first.
...

Pacjack

Redirection to another webserver on internal network
« Reply #5 on: March 01, 2006, 03:13:35 PM »
Quote from: "RayMitchell"

>... I am using SME 6.5 in server only mode...

That may be your problem, you may need your server running in server gateway mode for Proxypass to be effective.

Why do I need to run my server in server-gateway mode for ProxyPass to be effective?

Offline raem

  • *
  • 3,972
  • +4/-0
Redirection to another webserver on internal network
« Reply #6 on: March 02, 2006, 01:47:38 AM »
> Why do I need to run my server in server-gateway mode for ProxyPass > to be effective?

Sorry I said the wrog thing, I was referring to portforwarding not proxypass.
...

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Redirection to another webserver on internal network
« Reply #7 on: April 04, 2006, 01:31:51 AM »
See also this excellent article from:
http://www.schirrms.net/sme/SMEApacheReverseProxy.php
Sophie from Montréal