Koozali.org: home of the SME Server

Local Hostnames work on local network but not from external

Offline pcdoc

  • *
  • 56
  • +0/-0
I have several test servers set up on the local network, added into the hostnames and addresses section as subdomains of the main domain. eg, test1.example.com where example.com and the fqdn on the internet.
Each subdomain is assigned a local address, and I have also included the MAC address of each NIC on the servers.
The subdomains are assigned the same IP address on our external DNS hosting as the main domain server.
From the internal LAN, i can access each server using test1.example.com test2.example.com etc.
From the internet however, when I use the same subdomains, it just goes to the main domain webpage.
I have looked in messages and dmesg for any errors related to it. none. have looked in /var/log/httpd logs. none.

Anyone have any ideas where else I can look to find the issue. It was working well with SME 7.5.1
There are 10 types of people in this world,
   Those that know binary, and those who don't!

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Local Hostnames work on local network but not from external
« Reply #1 on: May 31, 2012, 01:42:40 PM »
I have several test servers set up on the local network...From the internal LAN, i can access each server using test1.example.com test2.example.com etc.
From the internet however, when I use the same subdomains, it just goes to the main domain webpage.
This sounds like each server has a different IP address. 

If I'm right, you would have to configure proxypass on the default SME server for each sudomain.


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Local Hostnames work on local network but not from external
« Reply #2 on: May 31, 2012, 02:50:18 PM »
If I'm right, you would have to configure proxypass on the default SME server for each sudomain.

That's what would need to be done. Setting up addresses in the hostnames and addresses panel does nothing to configure apache to proxy http and https traffic from the LAN servers to the Internet.

Offline pcdoc

  • *
  • 56
  • +0/-0
Re: Local Hostnames work on local network but not from external
« Reply #3 on: May 31, 2012, 03:27:25 PM »
Thanks, seems I hadn't recorded that on the old servers logs. Jogged my memory.

Much appreciated.
There are 10 types of people in this world,
   Those that know binary, and those who don't!