Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 1997 18:24:26 -0700 (MST)
From:      Marc Slemko <marcs@znep.com>
To:        Peter Olsson <pol@leissner.se>
Cc:        Eddie Fry <eddie@wicked.eaznet.com>, isp@FreeBSD.ORG
Subject:   Re: Web Page Restrictions 
Message-ID:  <Pine.BSF.3.95.971124182157.4625C-100000@alive.znep.com>
In-Reply-To: <3.0.32.19971125013534.0068bdf4@lda>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Nov 1997, Peter Olsson wrote:

> 16:53 1997-11-24 -0700 Eddie Fry wrote:
> >I'm running 2.2.2 and Apache.  I have a customer that keeps putting up
> pages that should be in his own domain (we host a domain for him).  Is
> there a way to "turn-off" the üxxx link to a certain user's page?
> 
> Make his web-directory (default public_html) owned by root,
> chmod it to 700 and delete all his files in the directory.

I'm afraid that won't do much.  All he has to do is remove the directory
and make a new one.  You can make it immutable, but you don't want to do
that unless you want to.

In Apache 1.3, you can disable specific ~userdirs.  See the mod_userdir
docs for details.  You can't do this in 1.2.

Otherwise, you can add something like:

<Directory /home/user/public_html>
deny from all
AllowOverride none
</Directory>

to your config file.  /home/user has to be what ~user is.  It may be
/usr/home or /home or something else in your passwd file.  It must be what
is in the passwd file, it is not enough for it to be a symlink to the same
place.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.971124182157.4625C-100000>