Koozali.org: home of the SME Server

Redirecting Hostnames..

Offline askelon

  • ***
  • 59
  • +0/-0
Redirecting Hostnames..
« on: December 14, 2004, 02:30:12 AM »
I am trying to redirect the internal web services to goto my website at my ISP to no avail.  I have tried modifying the www.domain.com from local to the remote IP but it still loads the local website.  I have rebooted the SME server,  waited 24+ hours and its still doing the same.  Does anyone have any suggestions?

arrowsmith

Redirecting Hostnames..
« Reply #1 on: December 14, 2004, 08:06:29 AM »
I have dealth with this issue many times in many different situations.

First of all is your server name the same name of your website?
If so go into hostnames and address' and under hostname for 'www', edit that and for the location, choose remote then enter the IP, dont't publish globally (i think).  This should now work, may take a min, and shouldnt have to reboot or anything.

If you server name is different to the website name:
Create a new virtual domain call it like 'mydomain.com', then remove all hostnames linked to this virtual domain except for hostname 'www'.
Follow the steps as above to edit that hostname, publish globally etc. etc.

I hope you get my drift,

i'm not sure, but there may be another way to do this.

Offline askelon

  • ***
  • 59
  • +0/-0
Redirecting Hostnames..
« Reply #2 on: December 14, 2004, 08:28:58 PM »
Im pretty sure thats how Ive done it.  I'll go test it again later on today (the servers at my work).  Unfortunately the guy that did the website did it in coldfusion and needs to make quite a few changes to get it to host under Linux correctly otherwise I'd just host it on the server.

guest22

Redirecting Hostnames..
« Reply #3 on: December 15, 2004, 12:48:39 AM »
Hi,

make sure your that, if you have an external website, that you name your SME Server DIFFERENT in the first place.

e.g. Your external site is www.mydomain.com, name your box local.mydomain.com. From this situation you can adjust hostnames in the server manager without any problems.

Thus, if applicable, rename your box.

RequestedDeletion

Offline askelon

  • ***
  • 59
  • +0/-0
Redirecting Hostnames..
« Reply #4 on: December 15, 2004, 04:24:49 AM »
If I did it that way wouldnt it muck up my email?

arrowsmith

Redirecting Hostnames..
« Reply #5 on: December 15, 2004, 04:45:41 AM »
yeah, it prolly will muck up your email, therefore you will need to start mucking around with hostnames etc.

I can sort it out if i had a bit better picture of what is going on, or i looked at the server, but at the moment, from the top of my head i cannot suggest a correct solution.  sorry  :-?

guest22

Redirecting Hostnames..
« Reply #6 on: December 15, 2004, 08:30:16 AM »
Add your external.com to the hostnames server-manager panel and the mail will flow.

Offline askelon

  • ***
  • 59
  • +0/-0
Redirecting Hostnames..
« Reply #7 on: December 19, 2004, 04:09:24 AM »
Thanks heaps for all the replys. I  just tested it all on my local server (my home one) and it worked perfectly!  I will go set it up the same at my work tomorrow and fingers crossed it all works!!