How to redirect port 80 to 81 for a domain

Randy Adams Randy.Adams at telus.com
Tue Jun 5 19:24:08 UTC 2001


Or configure your web server to respond differently based on the HTTP
header.

Apache (and most other web servers) supports virtual name hosting. So that a
single server with a single IP can serve different differnt content based on
the domain name requested.

ie.

http://testdomain1.com 
http://testdomain2.com 

would both resolve to one IP address. The http request sent to the server
would contain a  request for either testdomain1.com, or testdomain2.com. The
server would respond with the appropriate content.

The virtual host config info for apache can be found here.
http://httpd.apache.org/docs-2.0/vhosts/ 

Good luck.

Randy Adams 
Network Manager
TELUS Communications Inc.
Technology & Operations
(403)503-3011

got snow???
http://www.skiamigos.com


-----Original Message-----
From: Leonardo Rodrigues Magalhães [mailto:coelho at persogo.com.br]
Sent: Tuesday, June 05, 2001 1:13 PM
To: jb at extranet.k-concept.com;
comp-protocols-dns-bind at moderators.isc.org
Subject: Re: How to redirect port 80 to 81 for a domain




    Simple, you cant. Bind ( I mean DNS ) cares ONLY on resolving names to
IP and IP to names. If you want to connect on port 81, you should use:

http://your.server.com:81/

    Leonardo Rodrigues

----- Original Message ----- 
From: "jb" <jb at extranet.k-concept.com>
To: <comp-protocols-dns-bind at moderators.isc.org>
Sent: Tuesday, June 05, 2001 1:44 PM
Subject: How to redirect port 80 to 81 for a domain


> Hi,
> I have a domain ex : test.com
> i have an http server responding on port 80
> and an other on port 81
> together on the same ip adress 
> I want to connect on test.com using port 81





More information about the bind-users mailing list