LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-06-2010, 02:07 PM   #1
machinakias
LQ Newbie
 
Registered: Dec 2008
Posts: 9

Rep: Reputation: 0
how to redirect a subdomain to another server?


hi all! Please let me ask this...

i got two servers (virtual machines),one as web at 192.168.0.10 and the other as mail (running zimbra) at 192.168.0.20.

got a domain name like domain.gr for my website and i also use it for mails in zimbra.
Everything goes to my router (static ip) and then i forward it to my severs.
I also use virtualmin to administer the web server.

Here is what i need:
I want to redirect mail.domain.gr (that is registered in web's BIND as a subdomain at 0.10) to my mail that runs at 192.168.0.20:8080,
so my visitors will be able to hit mail.domain.gr instead of mail.domain.gr:8080 to use the web based mail....

got any ideas? thanks a lot for any helpful answers!

Last edited by machinakias; 12-06-2010 at 02:08 PM.
 
Old 12-06-2010, 03:41 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
BIND (DNS) doesn't deal with ports - it deals with names and IPs.

Therefore you can't tell it to use mail.domain.gr for two different servers on two different ports.

What you might want to consider instead is to setup a new record called "webmail.domain.gr" and point that to the other server. Tell users to use that to get to the one where the web mail is.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache httpd.conf Redirect Subdomain firefly2442 Linux - Server 4 05-10-2012 03:05 AM
Create webmail subdomain on Plesk master domain. (reserved subdomain) fruitwerks Linux - Server 0 08-11-2010 03:08 PM
apache redirect to a different subdomain uglyoldbob Linux - Server 0 08-18-2009 05:57 PM
How can I point a subdomain to another server on the same LAN? apache2 Linux - Server 16 03-01-2009 01:42 AM
mod_rewrite: redirect depending on subdomain mysql_connect Linux - Server 1 08-01-2007 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration