Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 55102 invoked by uid 500); 28 Jan 2002 21:10:16 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 55089 invoked from network); 28 Jan 2002 21:10:15 -0000 Received: from zebra.siol.net (193.189.160.16) by daedalus.apache.org with SMTP; 28 Jan 2002 21:10:15 -0000 Received: from vector ([213.250.13.120]) by zebra.siol.net (InterMail vK.4.03.04.00 201-232-130 license 5ac1ec526f2360901e54ffce7671dc4c) with SMTP id <20020128210951.GEHQ2057.zebra@vector> for ; Mon, 28 Jan 2002 22:09:51 +0100 Message-ID: <005301c1a83f$b94e3180$780dfad5@vector> From: "Perplexer" To: References: <001d01c1a835$acd72b00$780dfad5@vector> <20020128124821.A21626@rawbyte.com> Subject: Re: Apache "Forbidden" Date: Mon, 28 Jan 2002 22:06:57 +0100 Organization: Paragon MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Can you perhaps explain what I must do more in detail. I'm not experienced enough to really understand what you suggested I do. I would appreciate it if you could be more specific. Thanks. ----------- Perplexer ----- Original Message ----- From: "Daniel Lopez" To: Sent: Monday, January 28, 2002 9:48 PM Subject: Re: Apache "Forbidden" > > You can do so using a > > Options -Indexes > > directive for that directory > > Daniel > > On Mon, Jan 28, 2002 at 08:55:00PM +0100, Perplexer wrote: > > Hello everybody. > > > > I have just installed Red Hat Linux 7.2 and Apache 1.3.20 Server came with it. > > It's running OK, but there is one thing that I would like to solve. > > I understand there are initially two places where a user can have his web > > files stored, /home/username/public_html or /var/www/html/username. If the files > > are stored in his homedir, his web site will be reachable through the URL > > containing a ~ (http://any.domain.com/~username/). If his files are located > > in /var/www/html/username, his web site will be reachable through the same > > URL, but without the ~ (http://any.domain.com/username/). > > > > Now I noticed that if there is an index.html file in user's home dir > > (/home/username/public_html) then the server will read that index.html file > > and display the page normally when I open http://any.domain.com/~username/. If > > however there is no index.html file in this user's home dir, the server will > > reply with an error message "Forbidden You don't have permission to access > > /~username on this server." when I try to open http://any.domain.com/~username/ > > > > This actually suits me because if I unintentionally forget to upload the > > index.html file or if I delete or rename by mistake, the server will simply > > display the "Forbidden" message instead of listing the files that are in the > > home dir on the "Index of /~username" page. > > > > The problem is, this does not work the same in /var/www/html/username dir > > if I decide to put the web site there so that I don't have to type the ~ in > > the URL. If I forget to upload the index.html file there, the server will not > > display the "Forbidden" message but will display the "List of /username" page, > > displaying a complete list of all other files in that dir. This also happens > > if I create a new user and set his home directory to /var/www/html/username. > > In this case both /~username and /username URLs will bring up a "List of /username" > > or "List of /~username" page if index.html isn't found. > > > > Can I make Apache display the "Forbidden" message for accesses to pages located > > under /var/www/html/username also, if the index.html file is missing ? > > > > P.S.: Directory permissions are all right, so that shouldn't have anything to do > > with this. > > > > Thank you very much for your answer. > > > > Perplexer > > > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server Project. > > See for more info. > > To unsubscribe, e-mail: users-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 for more info. > To unsubscribe, e-mail: users-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 for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org