Koozali.org: home of the SME Server

hostnames and addresses

phowardcom

hostnames and addresses
« on: August 18, 2004, 11:04:31 AM »
I am hosting the DNS for my domain at zoneedit.com

I am running the webiste for this domain on an external server.

The SME server is used for email and Internet sharing.

Obviously the SME box has my domain as its primary domain so that email will be accepted.

I am trying to use the "hostnames and addresses" option to forward subdomains through to insternal servers.

I set up say intranet.mydomain.com as a hostname and point the IP address to my internal server. Thsi works perfectly as long as I am behind the SME server.

If I choose the option to publish globaly and put my external IP address in, when pinging the subdomain from behind the SME server i get the external IP address which is good. (i think)

I then set up a hostname at zoneedit for intranet.mydomian.com and point it to the external IP of the SME server.

the trouble is anyone trying to look at it externally onyl ever gets to the main information bay on the SME server.  It only seems to forward local, internal traffic to the internal server.

Am I trying to use this service in the wrong way or am I just being dumb?

cheers

Offline Boris

  • *
  • 783
  • +0/-0
hostnames and addresses
« Reply #1 on: August 18, 2004, 10:19:34 PM »
You need to use proxypass contrib (free) to redirect the web trafic from internal host to outsiders.
Latest dungog vdomain add-on include this option as well.
...

buknoy

Proxy Pass Uninstallation Problem
« Reply #2 on: October 19, 2004, 06:09:15 PM »
Hi all,

I have an existing domain e.g. buknoy.com on my SME server with a local I.P. of 61.9.115.11. I am trying to redirect the news.buknoy.com to 61.9.115.13 using ProxyPass. When ProxyPass's 2nd option didn't work, I used option 1 which started my problem.

I could not open buknoy.com/server-manager because the I.P. is redirected to 61.9.115.13. I used putty to edit the file /etc/httpd/conf/httpd.conf and remarked the following lines:

#ProxyPass      /       http://61.9.115.13
#ProxyPassReverse       /       http://61.9.115.13
#<Location />
#    order deny,allow
#    deny from all
#    allow from all
#</Location>

With this, I can access again buknoy.com/server-manager and removed my ProxyPass settings. However, after restarting, the remarked lines in the /etc/httpd/conf/httpd.conf were "unremarked" making it impossible to access again buknoy.com and buknoy.com/server-manager.

I also tried to use 61.9.115.11/server-manager but it failed to access the control panel.

What should I do to permanently remove the redirection?

Tnx,
Buknoy :cry:

bobk

hostnames and addresses
« Reply #3 on: October 20, 2004, 12:21:09 AM »
buknoy,

At the top of the file /etc/httpd/conf/httpd.conf you will see this statement:

#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation
#------------------------------------------------------------

You need to use the template system to make changes to this file. Read this http://www.e-smith.org/docs/papers/templates.html for information on the Template System.

buknoy

hostnames and addresses
« Reply #4 on: October 24, 2004, 04:04:17 AM »
bobk,

I read the remarks on the top of the script. The reason I defied the instruction is because I don't know what particular ProxyPass template should I modify and expand.

Buknoy