Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Drifting on May 21, 2007, 01:14:58 PM
-
Have been meaning to ask this for a while.
My server thinks it's xyz.org so any request from the local lan always brings up the internal site, how do you make it go to my remote hosted site? I have tried to put in the ip of the external site but this goes to my ISP's hosting server, and can only assume their server is looking for the host header?
How can I overcome this?
Paul.
-
Have been meaning to ask this for a while.
My server thinks it's xyz.org so any request from the local lan always brings up the internal site,
Paul.
Your server doesn't think it's xyz.org, it just IS xyz.org because you made him believe this by entering it in the configuration. Do you really need your lan domain to have the same name as your external domain? Otherwise just change the domainname of your server.
I thought there is also a "resolve locally" option at the domains section, maybe if you change this it will do the job as well. Haven't tried it...
-
I belive you can also add site name to domain as in site.xyz.org and accomplish the same thing as remnaming the domain. At least it works here.
DAS :idea:
-
Place this as your index.html file. Of course, rename the hyperlink to reflect your website's url.
<html>
<head>
<title>www.xxx.com</title>
<META HTTP-EQUIV="Refresh"
CONTENT="1; URL=http://www.yourwebsite.com">
<body>Redirecting!</body>
</head>
</html>
The redirect should work. It's what we do when people go to http://mail.ourserver.com, and our domain is set for the same name but the actual web host is off-site.
-
Thanks for the reply guys.
In answer to some of the questions, I thought you had to give the sme box the domain? or are you saying use something like xyz.local ? So do you then how do you sort the mail out? Virtual domain? We tend to use smtp mail.
Like the redirect solution, will give that a go.
Thanks ever so much for the help.
Paul.
-
I did it by putting my website www.standishchs.wigan.sch.uk in 'Hostnames and Addresses' section of server-manager as Remote. Then it searches DNS rather than internally.
-
Sadly the redirect did not work, it just kept refreshing.
I cannot forward to an ip address in the hostnames section as it just points to the ISP's server.
There must be a solution to this ? Anyone any other ideas?
Paul.
-
Works for me.....my isp still has an IP address.
Hostname Visibility Location Local IP Global IP Ethernet address Action
ftp.standishchs.wigan.sch.uk Local Self Modify Remove
mail.standishchs.wigan.sch.uk Global Self Modify Remove
proxy.standishchs.wigan.sch.uk Local Self Modify Remove
vle.standishchs.wigan.sch.uk Global Remote 82.165.48.13 Modify Remove
wpad.standishchs.wigan.sch.uk Local Self Modify Remove
www.standishchs.wigan.sch.uk Global Remote 82.165.48.13 Modify Remove
-
Works for me.....my isp still has an IP address.
Hostname Visibility Location Local IP Global IP Ethernet address Action
ftp.standishchs.wigan.sch.uk Local Self Modify Remove
mail.standishchs.wigan.sch.uk Global Self Modify Remove
proxy.standishchs.wigan.sch.uk Local Self Modify Remove
vle.standishchs.wigan.sch.uk Global Remote 82.165.48.13 Modify Remove
wpad.standishchs.wigan.sch.uk Local Self Modify Remove
www.standishchs.wigan.sch.uk Global Remote 82.165.48.13 Modify Remove
It may well work for you, sadly our isp hosts multiple websites on that server from a single IP, meaning the host header information is required, just forwarding the IP does not work in this case.
Paul.
-
ah, right. my isp also hosts multiple websites on one server, but allocate each one an ip address in dns - well, they must do, cos it works ok!
-
Sadly the redirect did not work, it just kept refreshing.
The redirect is only for people who forget to put 'www' in front of the site address. You still need to set hostname 'www.yourdomain.com' to point to the remote hosted server.
-- JJ
-
Paul,
I am presuming that it is only your web site access that is causing you problems - and that what you want is any reference to www.xyz.org to bring up your remote web page. (If you want all of the other hostmames (e.g., mail, ftp) to be pointed to the remote site as well, then your local domain should probably be something else.)
To accomplish this, here is what I have done. (I think this is what f21970 was suggesting.)
In the Domains menu item ensure that 'Resolve Locally' is selected.
Then in the 'Hostnames and addresses' section, click 'Modify' for 'www.xyz.org' entry and select 'remote' and then enter the ip address of your remote hosting site and save the result.
HOWEVER, I have noticed in the past that this can take *several hours* before this adjusted dns entry becomes effective for the browsers on your LAN. If you try immediately after making the change it appears not to work and you get very frustrated.
Hope this helps.
John
-
Thanks John.
I have reset the site to repoint to the IP, and I will leave it a few days to sort the dns.
Odd part was that it worked before for the main site, but if anyone tried say www.xwz.org/test, then that would fail.
Will report back next week.
Thanks
Paul.
-
John, you were quite right, waiting for the DNS to update solved the problem, thanks for putting me straight on that.
Best Wishes Paul.