You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Peter Kolbe (Venturenet Support)" <pe...@venturenet.co.za> on 2002/12/04 15:29:45 UTC
[users@httpd] Home directories and virtual Hosts
Hi,
I am running Apache Server version: Apache/1.3.22 (Unix)
(Red-Hat/Linux)
Server built: Jun 19 2002 11:55:48
I am using name based virtual hosts. I have a problem whereby if
somebody types http://www.venturenet.co.za/~peter they get to my
directory fine, but if they type http://www.dsa.co.za/~peter
(www.dsa.co.za is a virtual host) they also get to my directory.
How can I lock the ~... so it only works on our main domain (Main
Vhost?) so if they try to go to the dsa .... it will give an error.
Peter
---------------------------------------------------------------------
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] Home directories and virtual Hosts
Posted by "Peter Kolbe (Venturenet Support)" <pe...@venturenet.co.za>.
thanks,
that worked great.
Peter
On Wed, 2002-12-04 at 16:56, Joshua Slive wrote:
>
> On Wed, 4 Dec 2002, Peter "Kolbe (Venturenet ""Support) wrote:
>
> > Hi,
> > I am running Apache Server version: Apache/1.3.22 (Unix)
> > (Red-Hat/Linux)
> > Server built: Jun 19 2002 11:55:48
> >
> > I am using name based virtual hosts. I have a problem whereby if
> > somebody types http://www.venturenet.co.za/~peter they get to my
> > directory fine, but if they type http://www.dsa.co.za/~peter
> > (www.dsa.co.za is a virtual host) they also get to my directory.
> >
> > How can I lock the ~... so it only works on our main domain (Main
> > Vhost?) so if they try to go to the dsa .... it will give an error.
>
> See the docs for the UserDir directive. In particular, you can place
> UserDir disabled
> in all the <VirtualHost>s where you don't want them to work. Or you can
> place
> UserDir disabled
> in the main main server context and reactivate it in the specific
> <VirtualHost>s where you want it.
>
> 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
---------------------------------------------------------------------
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] Home directories and virtual Hosts
Posted by Joshua Slive <jo...@slive.ca>.
On Wed, 4 Dec 2002, Peter "Kolbe (Venturenet ""Support) wrote:
> Hi,
> I am running Apache Server version: Apache/1.3.22 (Unix)
> (Red-Hat/Linux)
> Server built: Jun 19 2002 11:55:48
>
> I am using name based virtual hosts. I have a problem whereby if
> somebody types http://www.venturenet.co.za/~peter they get to my
> directory fine, but if they type http://www.dsa.co.za/~peter
> (www.dsa.co.za is a virtual host) they also get to my directory.
>
> How can I lock the ~... so it only works on our main domain (Main
> Vhost?) so if they try to go to the dsa .... it will give an error.
See the docs for the UserDir directive. In particular, you can place
UserDir disabled
in all the <VirtualHost>s where you don't want them to work. Or you can
place
UserDir disabled
in the main main server context and reactivate it in the specific
<VirtualHost>s where you want it.
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