#1  
Old 4th May 2010, 19:42
pedrovalmor pedrovalmor is offline
Junior Member
 
Join Date: May 2010
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Lightbulb Redirect a domain

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
Reply With Quote
Sponsored Links
  #2  
Old 5th May 2010, 13:44
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

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
Reply With Quote
  #3  
Old 5th May 2010, 15:38
pedrovalmor pedrovalmor is offline
Junior Member
 
Join Date: May 2010
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Ben View Post
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
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...
Reply With Quote
  #4  
Old 5th May 2010, 18:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Maybe you can do this with some rewrite rules: http://httpd.apache.org/docs/2.2/rew...ite_guide.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
pedrovalmor (6th May 2010)
  #5  
Old 6th May 2010, 23:39
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

Quote:
Originally Posted by pedrovalmor View Post
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...
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
Reply With Quote
  #6  
Old 7th May 2010, 01:02
pedrovalmor pedrovalmor is offline
Junior Member
 
Join Date: May 2010
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Ben View Post
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
I'll try this tomorrow and drop the result here.

Thanks a lot
Reply With Quote
  #7  
Old 17th May 2010, 16:18
pedrovalmor pedrovalmor is offline
Junior Member
 
Join Date: May 2010
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by pedrovalmor View Post
I'll try this tomorrow and drop the result here.

Thanks a lot
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.

Reply With Quote
  #8  
Old 25th May 2010, 20:44
pedrovalmor pedrovalmor is offline
Junior Member
 
Join Date: May 2010
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Default

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!!!
Reply With Quote
  #9  
Old 26th May 2010, 10:01
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Tags
redirect domain

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alias domain 301 redirect tio289 Tips/Tricks/Mods 2 16th July 2010 08:25
email issue for second domain configured ISPConfig3 mscomputing Installation/Configuration 1 10th November 2009 11:09
domain bad redirect metaldrummer Installation/Configuration 9 2nd July 2009 11:45
Domain forwarding / redirect failed stefanr Installation/Configuration 4 4th April 2009 22:20
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 18:51


All times are GMT +2. The time now is 05:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.