httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] virtual host over a port in 1.3
Date Thu, 31 Mar 2005 00:08:06 GMT
On Wed, 30 Mar 2005 16:14:18 -0700, Hunter Peress <hunterp@gmail.com> wrote:
> On Wed, 30 Mar 2005 19:07:43 -0400, Ivan Barrera A. <Bruce@ivn.cl> wrote:
> > Hunter Peress wrote:
> > > hi, is there a way i can do a virtual host  over a port in 1.3
> > >
> >
> > ??????
> For example normally to make a dns-based virtual host, you  do:
> 
> <VirtualHost *:80>
>    ServerName something.com
>    DocumentRoot /something.com
> </VirtualHost>
> 
> So, suppose this machine has a static IP of x.y.z.w , if i enter
> x.y.z.w:31   , i want apache to map that port over some DocumentRoot.
> so this would be "virtual host over a port with no dns involved".

Yes.  Port-based virtual hosting works exactly like IP-based virtual
hosting.  Look that up in the docs, and then feel free to ask any
questions you still have.  (Note you need a Listen directive for each
port as well as a <VirtualHost> block.)

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