Make sure that your httpd/apache user has permissions to
/hpweb/TrainingVids/DigitalPhotography/ .

Michael Cox


-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Harry Putnam
Sent: Tuesday, October 04, 2005 12:12 PM
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: [OT apache Q] How to make apache display files in
specific directories

Catalin Trifu <[EMAIL PROTECTED]> writes:

>    Option Indexes
>
> Harry Putnam wrote:
>
>>I seem to recall some trick stuff done with .htaccess or the like that
>>would cause apache to be able to display any files appearing in a
>>directory when someone hit www.myhost.org/somedir
>>
>> Anyone here know how that is done? 

Thanks, but I'm not getting how its done.  Consulting the apache
manual online I ended up thinking something like this should work in
/etc/apache2/conf/commonapache2.conf.  The plus sign is supposed to
mean it will merge onto other directory entries.

  <Directory /hpweb/TrainingVids/DigitalPhotography>
    Options +Indexes
  </Directory>

There is another Directory entry in that stock file right above where
I inserted mine that looks like:

  <Directory />
    Options -All -Multiviews
    AllowOverride None
    <IfModule mod_access.c>
      Order deny,allow
      Deny from all
    </IfModule>
  </Directory>

I thought maybe the minus sign on All would mean it was ruled out for
all options, so changed it to +.  It didn't work either way after 
  `/etc/init.d/apache2 restart'

The error is:

You don't have permission to access
/hpweb/TrainingVids/DigitalPhotography/ on this server.

However that directory has the same permissions as all others. (my
user)


 

-- 
gentoo-user@gentoo.org mailing list

-- 
gentoo-user@gentoo.org mailing list

Reply via email to