Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
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 ...
  1. #1
    Just 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.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    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.

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    24
    Quote Originally Posted by Irithori View Post
    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.
    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.

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    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.

  5. #5
    Just 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 !

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    Ok, so there seems to be no data migration needed.
    (NO db, file and config)
    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

    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.example
    You must always face the curtain with a bow.

  7. #7
    Just 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.

  8. #8
    Just 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.

  9. #9
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Are you looking for something like this?

    Apache Rewrite Cheatsheet

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  10. #10
    Just 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.

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...