Redirect a domain

Discussion in 'Installation/Configuration' started by pedrovalmor, May 4, 2010.

  1. pedrovalmor

    pedrovalmor New Member

    Hello all,

    I want redirect a domain to other server(port 80) in my local network, how can I do this with ISPConfig ?

    May be with iptables nat? I need some help.

    PS: I use ISPConfig 3 with Ubuntu 9.10 Server (Perfect Server HOWTO).

    Thanks!

    Best Regards,

    Pedro Valmor
     
  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

    You won't be able to do this with iptables as it has no intelligence on the appropriate level.

    So one way would be to enter in the http options of the ispconfig's web configuration a permanen redirect, e.g. Redirect permanent / http://www.yournewdomain.tld
     
  3. pedrovalmor

    pedrovalmor New Member

    Hello Ben,

    Thanks for answer. :)
    But I need redirect the a domain to the other ip server in port 80.

    Ex: when I visit domain.com redirect to 200.xxx.xxx.xxx:80

    Hope somebody help me...
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. Ben

    Ben ISPConfig Developer ISPConfig Developer

    Should not be a problem anyway. assume the domain is domain1.com. The redirect adress is 1.2.3.4 (port 80 is standard http so it is not necessary here).
    So the statement in the domain1 web config would be:

    redirect permanent / http://1.2.3.4
     
  6. pedrovalmor

    pedrovalmor New Member

    I'll try this tomorrow and drop the result here.

    Thanks a lot :D
     
  7. pedrovalmor

    pedrovalmor New Member

    Don't work for me.
    Can't connect to my internal ip server.

    I want just redirect some site to other server with internal ip.

    :confused:
     
  8. pedrovalmor

    pedrovalmor New Member

    Hello all,

    To fix this, I put 2 networks ethernet in the internal server with 2 ip's (lan and wan) and used some php scripts to redirect...

    works fine for me :)

    tks to all!!! :D
     
  9. Ben

    Ben ISPConfig Developer ISPConfig Developer

    But what do the two IPs have to do with the redirect?

    The script also just sends a http header, but for sure, this is a solution as well :)
     

Share This Page