directory access (file listing) does not work ...

This is a discussion on directory access (file listing) does not work ... within the Apache Web Server forums, part of the Web Server and Related Forums category; I can get at http://www.terwiel.com/studie/frankena.pdf all right, it loads into acrobat etc.. no problem. ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-05-2004
Erik
 
Posts: n/a
Default directory access (file listing) does not work ...

I can get at

http://www.terwiel.com/studie/frankena.pdf

all right, it loads into acrobat etc.. no problem.

but when I try to see the file listing of that directory with

http://www.terwiel.com/studie/


I cannot get a neat listing of the files in that directory (403 ?)

what is wrong ?
in httpd.conf or Linux permissions ?


permissions of the pdf is 744 owner root

and of the directory studie is 755

Apache 2.0.50


fr gr
Erik
  #2 (permalink)  
Old 11-05-2004
Davide Bianchi
 
Posts: n/a
Default Re: directory access (file listing) does not work ...

On 2004-11-05, Erik <> wrote:
> http://www.terwiel.com/studie/
> I cannot get a neat listing of the files in that directory (403 ?)
> what is wrong ?


Check in the error_log, the error is detailed in there, since is
a 'forbidden' i suppose is a problem in allow/deny in the configuration
of apache.

> permissions of the pdf is 744 owner root


? why "7" ? Isn't an executable.

Davide

--
You all have to admit that Microsoft products provide a quality unmatched
by any other company. That is why I am switching to 100% pure shredded
Microsoft certificates of authenticity in my hamster's cage.
-- From a Slashdot.org post
  #3 (permalink)  
Old 11-05-2004
Erik
 
Posts: n/a
Default Re: directory access (file listing) does not work ...

here is some HTTPD.CONF:


<Directory />
AllowOverride None
Options None
Order Deny,Allow
Deny from all
</Directory>

<Directory /var/www >
Options FollowSymLinks
</Directory>

<Directory /var/www/www.terwiel.com/htdocs >
DirectoryIndex index.html
Order Deny,Allow
Allow from All
</Directory>


<Directory /var/www/www.terwiel.com/htdocs/studie>
IndexOptions FancyIndexing
AddDescription "Aantekeningen hoorcollege" hc*.pdf
IndexIgnore ..
AddIcon (DIR,/icons/dir.gif) ^^DIRECTORY^^
DefaultIcon /icons/burst.gif
Order Deny,Allow
Allow from All
</Directory>

  #4 (permalink)  
Old 11-05-2004
Erik
 
Posts: n/a
Default Re: directory access (file listing) does not work ...

On 5 Nov 2004 13:25:10 GMT, Davide Bianchi
<davideyeahsure@onlyforfun.net> wrote:

>On 2004-11-05, Erik <> wrote:
>> http://www.terwiel.com/studie/
>> I cannot get a neat listing of the files in that directory (403 ?)
>> what is wrong ?

>
>Check in the error_log, the error is detailed in there, since is
>a 'forbidden' i suppose is a problem in allow/deny in the configuration
>of apache.


error log does not give a whole lot of info...


>
>> permissions of the pdf is 744 owner root

>
>? why "7" ? Isn't an executable.
>


ok, true... wiil change



  #5 (permalink)  
Old 11-05-2004
Davide Bianchi
 
Posts: n/a
Default Re: directory access (file listing) does not work ...

On 2004-11-05, Erik <> wrote:
><Directory />
> Order Deny,Allow
> Deny from all
></Directory>


You're denying anything from everywhere...

><Directory /var/www/www.terwiel.com/htdocs >
> DirectoryIndex index.html
> Order Deny,Allow
> Allow from All


If you want to allow everything, use Order allow,deny and then an
allow from all

> Order Deny,Allow
> Allow from All


The same goes here. Check also if the index.html file is rw-r--r--

Davide

--
"Our business model works even if *ALL* software is free.
How does Microsoft's business model look? -- not so good."
-- the response from the Linux community
  #6 (permalink)  
Old 11-05-2004
Erik
 
Posts: n/a
Default Re: directory access (file listing) does not work ...

On 5 Nov 2004 14:16:18 GMT, Davide Bianchi
<davideyeahsure@onlyforfun.net> wrote:

>On 2004-11-05, Erik <> wrote:
>><Directory />
>> Order Deny,Allow
>> Deny from all
>></Directory>

>
>You're denying anything from everywhere...
>


Yes but But people can see my wbsite in
/var/www/www.terwiel.com/htdocs/index.html......

I don't want anyone snooping in my root directory...


>><Directory /var/www/www.terwiel.com/htdocs >
>> DirectoryIndex index.html
>> Order Deny,Allow
>> Allow from All

>
>If you want to allow everything, use Order allow,deny and then an
>allow from all


Don't I:
deny nothing and Allow ALL ?


>
>> Order Deny,Allow
>> Allow from All

>
>The same goes here. Check also if the index.html file is rw-r--r--


There is no index.html in studie, because there are only files for ppl
to download. That is why I want a file listing to show up.

>
>Davide


  #7 (permalink)  
Old 11-05-2004
Davide Bianchi
 
Posts: n/a
Default Re: directory access (file listing) does not work ...

On 2004-11-05, Erik <> wrote:
> I don't want anyone snooping in my root directory...


By definition, Apache allow people in only in the DocRoot directory,
that is not / (usually).

> deny nothing and Allow ALL ?


I remember that there were some trouble in doing the other way around,
not sure if it was a bug that was fixed or not, but for clarity I've
always done Order allow,deny - Allow from all.

> There is no index.html in studie, because there are only files for ppl
> to download. That is why I want a file listing to show up.


Maybe you should add Options +Indexes then in the Directory block.

Davide

--
Internet is so big, so powerfull and so pointless, that for more people
is a substitute for life.
  #8 (permalink)  
Old 11-05-2004
Erik
 
Posts: n/a
Default Re: directory access (file listing) does not work ...


>Maybe you should add Options +Indexes then in the Directory block.


That one, and only that one, does the trick, seen from the intranet at
least.

thanx for your input. much appreciated.
Erik
  #9 (permalink)  
Old 11-05-2004
HansH
 
Posts: n/a
Default Re: directory access (file listing) does not work ...

"Erik" <et57 at correos calor dot com> schreef in bericht
news:euvmo0tda68e5l9g8kvouu2vb3rlgpnb5c@4ax.com...
> On 5 Nov 2004 13:25:10 GMT, Davide Bianchi
> <davideyeahsure@onlyforfun.net> wrote:
> >Check in the error_log, the error is detailed in there, since is
> >a 'forbidden' i suppose is a problem in allow/deny in the configuration
> >of apache.

> error log does not give a whole lot of info...

You're passing even less ...
.... assuming "... denied by rule" or alike
probably the option 'indexes' is not active at your configuration.
http://httpd.apache.org/docs-2.0/mod/core.html#options

HansH


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0