Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Old 09-02-2008, 04:15 PM Redirect questions
Junior Talker

Posts: 2
Trades: 0
Hi all,

I have a question regarding redirect. I have a website today on a single server which I will split on two servers.

www.domainname.com will point to server 1
www.domainname.com/en should point to server 2

Tomorrow I will update the DNS to point to server 1 but how do I setup the redirect to server 2 the easiest way? Something about a virtual directory seems to be the way to go but I am not sure...

I need to go live within 12 hours so any help is much appreciated.

By the way, I am using IIS.

Thanks,
bondi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-03-2008, 01:58 AM Re: Redirect questions
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
You cannot point different locations at single domain to different IPs. You can point www.domain to server 1 and en.domain to server 2. If you want to handle requests for www.domain/en/ exactly at another server you will have to do some tricks. This will require installing some lightweight http frontend like nginx or lighttpd on server 1 and then setting up proxying so that requests to www.domain/ were proxied to localhost and requests to www.domain/en/ were proxied to server 2. But in this case the client will always connect to server 1 and thus you will send all traffic from server 2 twice: from server 2 to server 1 and then from server 1 to client. This will not be a problem if both servers are installed into the same rack and are connected through private VLAN, but if you will transfer sufficient amounts of proxied data between servers through outer net you may waste a lot of money.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 09-03-2008, 05:23 PM Re: Redirect questions
Junior Talker

Posts: 2
Trades: 0
Thanks for your reply mtishetsky!

the servers will be in the same rack so I guess your second solution would work for me. It sounds a bit tricky though... I tried with a redirect in IIS to an IP-address and although it worked, the URL changed to the IP-address which I do not want.

I guess I have to go for your first solution.

Thanks for your help!
bondi is offline
Reply With Quote
View Public Profile
 
Old 09-03-2008, 06:35 PM Re: Redirect questions
Novice Talker

Posts: 9
Trades: 0
Do you need to do a directory like that? Why not do en.domainname.com You can point that to a different IP with a separate A record in your DNS! And then even use IIS to redirect domainname.com/en to en.domainname.com with a 301
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
itliberty is offline
Reply With Quote
View Public Profile Visit itliberty's homepage!
 
Reply     « Reply to Redirect questions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.63682 seconds with 12 queries