Results 1 to 10 of 21
I hosted 2 websites on other server. I have point all the website to my another static IP CentOS server. But I want to redirect website_1 and website_2 to website_3.(With ...
- 08-15-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 24
forwarding DNS or redirect Website ?
I hosted 2 websites on other server. I have point all the website to my another static IP CentOS server. But I want to redirect website_1 and website_2 to website_3.(With different domain name)
what can I do ? forwarding DNS or redirect Website ? anyone can give me some suggestion.
- 08-15-2011 #2
If website_1 and website_2 have been *succesfully* and *completely* (databases, files, config) migrated to the same server that already hosts website_3,
then pointing dns to the new IP should be preferable.
Redirecting would introduce an unneeded dependency, higher latency and reduced availability.You must always face the curtain with a bow.
- 08-15-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 24
I hosted website_1 ,website_2 and website_3 to website hosting company. If I ask them to forward website_1 ,website_2 to website_3 they are going to charge fee but if they point website_1 ,website_2 and website_3 to my server it is free. So I am trying to find out how to forward website_1 ,website_2 to website_3.
- 08-15-2011 #4
Now I am confused.
Is there a third server involved?
Up to now, my understanding was:
Server A:
- website_1 (e.g.: www.website_1.example)
- website_2 (www.website_2.example)
Server B:
- website_3 (www.website_3.example)
My suggestion would lead to:
Server B:
- website_1 (www.website_1.example)
- website_2 (www.website_2.example)
- website_3 (www.website_3.example)
This needs db, file and config migration,
as well as dns for website_1 and website_2 pointing to the IP of Server B
But maybe I didnt understand your setup correctly.
Can you please illustrate the current situation and the two alternatives?You must always face the curtain with a bow.
- 08-15-2011 #5Just Joined!
- Join Date
- Aug 2011
- Posts
- 24
i think Server B all hosted one server (Because I hosted the website in the hosting company). All website now redirect/point to my server nth in here (NO db, file and config). but I want when user type website_1 or website_2 redirect to website_3.
can u understand it ? ths for the help !
- 08-15-2011 #6
Ok, so there seems to be no data migration needed.
You just want to have the content of www.website_3.example also be available via www.website_1.example and www.website_2.example(NO db, file and config)
Then the mentioned DNS config should be enough.
To illustrate:
www.website_1.example has IP 1.2.3.4
www.website_2.example has IP 1.2.3.5
www.website_3.example has IP 1.2.3.6
After the config:
www.website_1.example has IP 1.2.3.6
www.website_2.example has IP 1.2.3.6
www.website_3.example has IP 1.2.3.6
If the webserver of website_3 is a apache,
you would need to define two ServerAlias
e.g.:
ServerName www.website_3.example
ServerAlias www.website_1example
ServerAlias www.website_2.exampleYou must always face the curtain with a bow.
- 08-16-2011 #7Just Joined!
- Join Date
- Aug 2011
- Posts
- 24
i just want user type in website_1 or website_2 will redirect to website_3 page. But the webserver I hosted website_1, website_2 and website_3 only allow me to point website_1, website_2 and website_3 to one static IP (my another server at office nothing in this server). What can I do after website_1, website_2 and website_3 pointed to my office server to do the effect when user type in website_1 or website_2 will redirect to website_3 page.
Last edited by name1234; 08-16-2011 at 02:05 AM.
- 08-16-2011 #8Just Joined!
- Join Date
- Aug 2011
- Posts
- 24
I don't hv any permission to control website_1, website_2 and website_3 webserver only allow to ask them point website_1, website_2 and website_3 to my office server.
- 08-17-2011 #9
Are you looking for something like this?
Apache Rewrite Cheatsheet
- 08-17-2011 #10Just Joined!
- Join Date
- Aug 2011
- Posts
- 24
Not, the webserver I hosted website_1, website_2 and website_3 only allow me to point website_1, website_2 and website_3 to one static IP (my another server at office nothing in this server).
Last edited by name1234; 08-17-2011 at 06:20 AM.


Reply With Quote
