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. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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> |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
"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 |