Koozali.org: home of the SME Server

ProxyPass or DNS again

Offline meelis

  • ****
  • 112
  • +0/-0
ProxyPass or DNS again
« on: September 26, 2008, 01:27:39 PM »
                    ISP
                     |
                  SME server (server and getaway mode)----web
                     |
                     |
xp workstation-|-Windows2003 (local dhcp server, and 1webwhat i wont show the exterenal and internal network)
Now i made port forwarding and its work, but if i wont see this 1web internal = 192.168.2.2:81
                                                        but if i wont see this 1web exterenal = www.mydomain.com:81

What i must todo to see same address this 1web in internal and exterenal network?


Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: ProxyPass or DNS again
« Reply #1 on: September 26, 2008, 03:18:15 PM »
Hi,

Mary just posted this which may help.

http://forums.contribs.org/index.php?topic=42154.0

Offline meelis

  • ****
  • 112
  • +0/-0
Re: ProxyPass or DNS again
« Reply #2 on: October 03, 2008, 08:09:50 AM »
Now i register my virtual domain own ISP, but how i configure my server?
request mayvirtualdomain shows my web (in sme)
If i try use proxyPass i see the page BadRequest (Your browser sent a request that this server could not understand).

I won't this, if going request myvirtualdomain in internal or/and exterenal network then shows may web what is my internal webserver (not sme) and my another web what (in sme) no make changes.
 

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: ProxyPass or DNS again
« Reply #3 on: October 03, 2008, 01:23:48 PM »
meelis

If I understand you correctly you have a sme server in server gateway mode that is hosting some domains.

You also have another web server (a windows server in this case but the OS does not really matter) behind your sme server and want to access a domain hosted on the 2nd web server, both from the local network and from external to your network, correct ?

Is so then proxypass is the way to go, if all you want is port 80 access. I'm not sure if access issues with https port 443 were fixed or not.

Firstly remove any existing port forwards or other settings you may have made trying to get this working, and return your sme server gateway to standard settings.

1) Configure external DNS records to point the 2ndservervirtualdomain at your sme servers public IP
2) On your sme server gateway remove the 2ndservervirtualdomain name from the Domains panel
3) Then create the proxypass entry as follows with name resolution set to local:

db domains set 2ndservervirtualdomain.com domain
db domains setprop 2ndservervirtualdomain.com Nameservers localhost
db domains setprop 2ndservervirtualdomain.com ProxyPassTarget http://192.168.2.2/
db domains setprop 2ndservervirtualdomain.com TemplatePath ProxyPassVirtualHosts
signal-event domain-create 2ndservervirtualdomain.com

In this case your second server should be on the same LAN so as to be locally accessible from sme eg sme = 192.168.2.1
Remember to include the trailing / after the IP number in the above command

The 2nd servervirtualdomain should then be accessible from the local network due to the localhost setting, and accessible externally due to external DNS records that point it at your sme gateway, which then proxypasses it to your second server.

I just set one up this way and it works OK.
« Last Edit: October 03, 2008, 01:29:06 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline meelis

  • ****
  • 112
  • +0/-0
Re: ProxyPass or DNS again
« Reply #4 on: October 03, 2008, 01:31:52 PM »
Its works!!!
I deleted all old settings (port forwarding, domains etc.) and reboot then makes all configuration again and all ok!
Thanks for relay
(Sorry my bad english)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: ProxyPass or DNS again
« Reply #5 on: October 03, 2008, 01:33:56 PM »
meelis

Quote
Its works!!!
I deleted all old settings (port forwarding, domains etc.) and reboot then makes all configuration again and all ok!


That was quick, it must have taken you less than a few minutes to resolve the issue !
« Last Edit: October 03, 2008, 01:35:27 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.