This is a discussion on getting user's public_html directories served up within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm almost there, but not quite... I'm using Apache2 as supplied with SuSE 10.2. I've enabled ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm almost there, but not quite...
I'm using Apache2 as supplied with SuSE 10.2. I've enabled the daemon and it works (I get the "It works!" page). Changing from the as-supplied setup (which includes the userdir module), I went into httpd.conf and added <IfModule mod_userdir.c> UserDir public_html UserDir disabled root </IfModule> which brings the users' public_html into the frame, but I get a 403 if I try and access them. I've tried both adding executable permission to the user's home directory and adding <Directory /home/*/public_html> Options All -Indexes AllowOverride All Order allow,deny Allow from all </Directory> to the config file, but I'm still getting those 403s :-( Any suggestions as to what's still borken? Ta, Pete. -- Peter Clinch Medical Physics IT Officer Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital Fax 44 1382 640177 Dundee DD1 9SY Scotland UK net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/ |
|
|||
|
Davide Bianchi wrote:
> On 2007-08-30, Peter Clinch <p.j.clinch@dundee.ac.uk> wrote: >> which brings the users' public_html into the frame, but I get a 403 if I >> try and access them. > > Check in the error_log, there should be a better error message. [error] [client 127.0.0.2] Directory index forbidden by Options directive: /home/joetest/public_html/ I note that in the httpd.conf, higher up there's a fairly secure looking default: <Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> Is that over-riding my subsequent <Directory /home/*/public_html> Options All -Indexes AllowOverride All Order allow,deny Allow from all </Directory> addition? Thanks, Pete. -- Peter Clinch Medical Physics IT Officer Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital Fax 44 1382 640177 Dundee DD1 9SY Scotland UK net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/ |
|
|||
|
"Peter Clinch" <p.j.clinch@dundee.ac.uk> wrote in message
news:5jo0aeFh2sjU1@mid.individual.net... > Davide Bianchi wrote: >> On 2007-08-30, Peter Clinch <p.j.clinch@dundee.ac.uk> wrote: >>> which brings the users' public_html into the frame, but I get a 403 if I >>> try and access them. >> >> Check in the error_log, there should be a better error message. > > [error] [client 127.0.0.2] Directory index forbidden by Options > directive: /home/joetest/public_html/ > > I note that in the httpd.conf, higher up there's a fairly secure looking > default: > > <Directory /> > Options None > AllowOverride None > Order deny,allow > Deny from all > </Directory> > > Is that over-riding my subsequent > > <Directory /home/*/public_html> > Options All -Indexes > AllowOverride All > Order allow,deny > Allow from all > </Directory> > > addition? > No, the first is the default which you are then overriding later. As you are using "-Indexes" you will receive a 403 if the user doesn't have an index.html (or similar) This is what is meant by "Directory index forbidden by Options directive" |
|
|||
|
Davide Bianchi wrote:
> All but -Indexes means that the list of files won't be shown. If you > don't have an index.html file in the directory you get an error. > You either remove the -Indexes option or add an index.html file. Aha! Yes, it works fine now (and I /was/ missing something I should have found while RTFM...) many thanks for your (very fast!) input! :-) cheers, Pete. -- Peter Clinch Medical Physics IT Officer Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital Fax 44 1382 640177 Dundee DD1 9SY Scotland UK net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/ |