openvds-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openvds-devel] The port 80 problem


From: RoseHosting Admin
Subject: Re: [Openvds-devel] The port 80 problem
Date: Fri, 14 Dec 2001 19:18:04 -0600

This is the way it should be done. It definitely works:

Listen 8080
Port 8080

VirtualHost *:80>
     ...
</VirtualHost>

No need to patch anything. Any Apache version will work.

Bobi R.
RoseHosting.com

----- Original Message -----
From: "Simon Garner" <address@hidden>
To: <address@hidden>
Sent: Friday, December 14, 2001 6:25 PM
Subject: Re: [Openvds-devel] The port 80 problem


> Hi,
>
> The problem is that Port is not a valid directive in a <VirtualHost> block
> (at least not in Apache 1.3.22). If you do:
>
>     Listen 8080
>     Port 80
>
>     <VirtualHost *>
>         ...
>     </VirtualHost>
>
> Then the VirtualHost is inaccessible (see httpd -S for why).
>
> If you do:
>
>     Listen 8080
>     Port 8080
>
>     <VirtualHost *>
>         ...
>     </VirtualHost>
>
> OR
>
>     Listen 8080
>     Port 80
>
>     <VirtualHost *:8080>
>         ...
>     </VirtualHost>
>
> It works but SERVER_PORT = 8080.
>
> If you try to do:
>
>     Listen 8080
>     Port 8080
>
>     <VirtualHost *>
>         Port 80
>         ...
>     </VirtualHost>
>
> The server will not start, due to configuration syntax error.
>
> I'm pretty sure I've exhausted all the possibilities and it is not
possible
> to make this work the way I would like. On the other hand I've got my
> patched kernel running fine and quite happy with the result :)
>
> Cheers,
>
> Simon
>
>
> From: "Marcos Rubinstein" <address@hidden>
>
>
> > You can define the port in the VirtualHost too... (the same
> > way that you define the IP)
> >
> > Cheers!
> > Marcos
> >
> > On Sat, 15 Dec 2001, Simon Garner wrote:
> >
> > > From: "Chris Fulton" <address@hidden>
> > >
> > > > Simon,
> > > >
> > > > add this line to httpd.conf (in each vhost):
> > > > Port 80
> > > > (or Port 443)
> > > > and leave Canonical On
> > > >
> > > > Then your server will rewrite proper urls to port 80.
> > > >
> > >
> > >
> > > But then VirtualHosts don't work...
> > >
>
>
>
> _______________________________________________
> Openvds-devel mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/openvds-devel
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]