You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hunter Peress <hu...@gmail.com> on 2005/03/31 01:03:15 UTC

[users@httpd] virtual host over a port in 1.3

hi, is there a way i can do a virtual host  over a port in 1.3 

in other words, im looking for a way to do a virtual host with no dns involved.

---------------------------------------------------------------------
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


Re: [users@httpd] virtual host over a port in 1.3

Posted by Joshua Slive <js...@gmail.com>.
On Wed, 30 Mar 2005 16:14:18 -0700, Hunter Peress <hu...@gmail.com> wrote:
> On Wed, 30 Mar 2005 19:07:43 -0400, Ivan Barrera A. <Br...@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


Re: [users@httpd] virtual host over a port in 1.3

Posted by Hunter Peress <hu...@gmail.com>.
On Wed, 30 Mar 2005 19:07:43 -0400, Ivan Barrera A. <Br...@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".

doable?

---------------------------------------------------------------------
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


Re: [users@httpd] virtual host over a port in 1.3

Posted by "Ivan Barrera A." <Br...@Ivn.cl>.
Hunter Peress wrote:
> hi, is there a way i can do a virtual host  over a port in 1.3 
> 

??????


> in other words, im looking for a way to do a virtual host with no dns involved.
> 
> ---------------------------------------------------------------------
> 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
> 
> 

---------------------------------------------------------------------
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