httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Virtual Hosts with 1 IP and multiple ports
Date Mon, 17 Nov 2003 15:37:38 GMT

On Mon, 17 Nov 2003, Dave Morrow wrote:

> I am a relative newcomer to Apache HTTP Server.  Have more experience with
> IIS (stop laughing).
>
> I am in the process of setting up several Apache servers to replace
> corresponding IIS servers.  Currently, the IIS servers are configured to
> serve websites on different ports. For example: http://website1:80
> <http://website1:80>  , http://website1:81 <http://website1:81>  all on a
> single IP address.  This is/was done to allow for easy configuration of a
> load balancing device which sits in front of these servers.  I would like
> to, if possible, configure Apache in a similar way.  Is this possible?
> Anyone have a how-to type document?

Yes, this is configured in a way identical to ip-based virtual hosting.
See:
http://httpd.apache.org/docs-2.0/vhosts/ip-based.html

It will look something like:

<VirtualHost 123.456.789.123:80>
ServerName website1:80
DocumentRoot c:/www/website1
</VirtualHost>

<VirtualHost 123.456.789.123:81>
ServerName website1:81
DocumentRoot c:/www/website2
</VirtualHost>

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message