Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: bosco555 on April 28, 2005, 09:09:47 AM
-
Hi All,
small question if I may... I have an sme box with the locally hosted e-mail, but the home web page is hosted at the ISP. Naturally, when you want to look at the page from the internal network, mozilla says that the page is under construction, I was wondering if there was a little hack to re-direct the internal web requests for the home page to the address hosted by the ISP.
Thanks in advance to all
GB
-
In the SME Server Manager, under Hostname and Addresses, you need to specify that www points to a remote server and you need to supply the remote server's IP address.
You very likely need to reboot the SME server after this as in every server I had done this on, the changes don't show up until after a server reboot.
Kelvin
-
Thanks for the reply and the help, will do
best regards
GB
-
Hi There,
there was already an entry in there, but didn't work. I did an nslookup for the "A" record which resulted in the IP address recorded in the above section. No joy, still gives me that the site is under construction? Any ideas?
regards
GB
-
In the file...
/home/e-smith/files/ibays/Primary/html/index.html
...put the following...
<!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"-->
<HTML>
<HEAD><TITLE>Redirect website</TITLE>
<meta http-equiv="refresh" content="3;url=http://www.YourISP.com">
</HEAD>
<BODY BGCOLOR="#FFFFFF"><H1></H1></BODY>
</HTML>
-
Hello,
I had the same problem. What You should do is:
Assign external IP to your website domain in e-smith manager "Hostnames and adresses".
1. Stop Squid
/etc/e-smith/service squid stop
2. Go to /var/spool/squid and remove cache dir's
cd /var/spool/squid
unalias rm
rm *
3. Rebuild squid cache
squid -z
4. Start squid
/etc/e-smith/service squid start
5. Clear cache in client's webbrowser
Now it should work as expected.
Eryk