Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Markus on January 04, 2003, 06:29:29 AM

Title: Primary Domain without www.
Post by: Markus on January 04, 2003, 06:29:29 AM
Hi all,

I don´t want all the trafic to my local network.
So I set my nameserver like:

www.mydomain.com A 123.123.123 (my provider hosting my public www)
*.mydomain.com A 123.123.123 (my dynamic IP to SME)

Outside my network it´s ok. When you go to www.mydomain.com you see the pages hosting by my provider. And when you got to mydomain.com or virtualhost.mydomain.com you see the pages hosting local.

But of course when i go to www.mydomain.com inside my network I see my local web. I tryed to replace all the "www" to "www1" in httpd.conf and restart httpd. But it didn´t work (i know not to edit the httpd.conf; it was only for test)

Which files must I edit to have only access to my primary domain without the "www" on my local network?
Title: Re: Primary Domain without www.
Post by: Vince Levalois on January 04, 2003, 07:34:23 AM
We had to leave it as a different (bogus) domain name temporily until the domain was actually hosted by the server...  There are probably better solutions.
Title: Re: Primary Domain without www.
Post by: NickR on January 05, 2003, 01:17:20 PM
It's actually very easy - the tools are all there already.  Go to Configuration / Hostnames & addresses on the SME admin page.  Modify the www entry so that the location is "remote" & then put the IP address of your real web server into the global IP box (do not tick the "Publish globally" box).  Save & you're done.
Title: Re: Primary Domain without www.
Post by: Johan on January 05, 2003, 06:00:30 PM
A littele note:

Then your admin page's is not at www.domain:980 but at your chossen name for you server. http://yourservername:980

Goodluck

Johan
Title: Re: Primary Domain without www.
Post by: Chaloner Hale on January 05, 2003, 09:49:31 PM
However the admin pages can be accessed at 192.168.x.x locally....
Title: Re: Primary Domain without www.
Post by: Markus on January 05, 2003, 11:38:48 PM
Ok. thank you. was too easy o)
I still can connect to the server-manager by mydomain.com/server-manager. Only the www.mydomain.com shows the remote page. perfect.