[SLE] Apache Directory Indexing?
How do you set up Apache so that it lists all the files in a users home directory if they don't have an index.html? I have seen this on many sites, but am unable to do this, it always gives me a " permissions denied", I did turn on "FancyIndexes", but that didn't help. Any ideas? Thanks, Jack -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Jack Barnett wrote:
How do you set up Apache so that it lists all the files in a users home directory if they don't have an index.html? I have seen this on many sites, but am unable to do this, it always gives me a " permissions denied", I did turn on "FancyIndexes", but that didn't help. Any ideas?
Almost. It's the "Indexes" directive. Koos Pol ---------------------------------------------------------------------- S.C. Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
What I have in there is: UserDir public_html <Directory "*/public_html"> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory> I still don't see what I am doing wrong. The root directory, will automatically index it's self just fine (provided it doesn't have an index.html file). The permissions are correct on the users home directory also. In the log files it gives the error: [Thu Feb 3 10:15:42 2000] [error] [client 192.168.17.8] Directory index forbidden by rule: /home/username/public_html I did restart the server after changing the httpd.conf file, but it still doesn't take. The server outputs this to the web browser: Forbidden You don't have permission to access /~user/ on this server. ---------------------------------------------------------------------------- ---- Apache/1.3.9 Server at 192.168.17.2 Port 80 In the options I do include indexes and there isn't any other things that is overwriting this, I don't understand what I am doing wrong, any ideas? Thanks, Jack ----- Original Message ----- From: Koos Pol <koos.pol@nl.compuware.com> To: SuSE Linux English <suse-linux-e@suse.com> Sent: Thursday, February 03, 2000 7:37 AM Subject: Re: [SLE] Apache Directory Indexing?
Jack Barnett wrote:
How do you set up Apache so that it lists all the files in a users home directory if they don't have an index.html? I have seen this on many
sites,
but am unable to do this, it always gives me a " permissions denied", I did turn on "FancyIndexes", but that didn't help. Any ideas?
Almost. It's the "Indexes" directive.
Koos Pol ---------------------------------------------------------------------- S.C. Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Jack Barnett wrote:
What I have in there is:
UserDir public_html
<Directory "*/public_html"> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory>
I still don't see what I am doing wrong. The root directory, will automatically index it's self just fine (provided it doesn't have an index.html file). The permissions are correct on the users home directory also.
In the log files it gives the error: [Thu Feb 3 10:15:42 2000] [error] [client 192.168.17.8] Directory index forbidden by rule: /home/username/public_html
I did restart the server after changing the httpd.conf file, but it still doesn't take.
Well, the only thing that is different between the way you have it and the way I have it is that I have: <Directory "/*/public_html"> instead of: <Directory "*/public_html"> Mind you, I don't use the UserDir feature of Apache, so I can't really tell you if this works ;-) As far as I can see, there's nothing wrong with that. Just make sure that public_html isn't a symlink to anywhere - I had major problems a few days ago with this... Hope that helps, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
chris.reeves@iname.com
-
jbarnett@axil.netmate.com
-
koos.pol@nl.compuware.com