getting user"s public_html directories served up

getting user"s public_html directories served up

am 30.08.2007 15:25:23 von Peter Clinch

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


UserDir public_html
UserDir disabled root


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


Options All -Indexes
AllowOverride All
Order allow,deny
Allow from all


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/

Re: getting user"s public_html directories served up

am 30.08.2007 15:29:33 von unknown

Post removed (X-No-Archive: yes)

Re: getting user"s public_html directories served up

am 30.08.2007 15:51:39 von Peter Clinch

Davide Bianchi wrote:
> On 2007-08-30, Peter Clinch 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:


Options None
AllowOverride None
Order deny,allow
Deny from all


Is that over-riding my subsequent


Options All -Indexes
AllowOverride All
Order allow,deny
Allow from all


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/

Re: getting user"s public_html directories served up

am 30.08.2007 15:57:59 von unknown

Post removed (X-No-Archive: yes)

Re: getting user"s public_html directories served up

am 30.08.2007 16:06:02 von phantom

"Peter Clinch" wrote in message
news:5jo0aeFh2sjU1@mid.individual.net...
> Davide Bianchi wrote:
>> On 2007-08-30, Peter Clinch 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:
>
>
> Options None
> AllowOverride None
> Order deny,allow
> Deny from all
>

>
> Is that over-riding my subsequent
>
>
> Options All -Indexes
> AllowOverride All
> Order allow,deny
> Allow from all
>

>
> 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"

Re: getting user"s public_html directories served up

am 30.08.2007 16:27:19 von Peter Clinch

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/