LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fedor 11 - Problem displaying a folder under apache (https://www.linuxquestions.org/questions/linux-newbie-8/fedor-11-problem-displaying-a-folder-under-apache-750696/)

vuhuynh 08-27-2009 02:11 PM

Fedor 11 - Problem displaying a folder under apache
 
Hello,

I'm having difficulty making a folder browseable in apache. Basically, I want to make it like a web folder with some files for users to download and I wasn't able to do so. This is a sample configuration in httpd.conf:

<Directory /var/www/html/test/>
Options +Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Not sure why but it gave a Forbidden when trying to access this folder. Any advise are greatly appreciated.

Regards,

schneidz 08-27-2009 02:37 PM

probably permissions. try:
Code:

man chmod
sudo chmod -r 744 /var/www/html/test/


vuhuynh 08-27-2009 02:51 PM

Not permission issue
 
Hi,

I checked and make sure that the permission is corrected. But in this case, the permission isn't the issue.

Here is a look of what the log file shows
[Thu Aug 27 15:47:32 2009] [error] (13)Permission denied: access to /test/index.php denied
[Thu Aug 27 15:47:32 2009] [error] (13)Permission denied: access to /test/index.html denied
[Thu Aug 27 15:47:32 2009] [error] (13)Permission denied: access to /test/index.html.var denied

This looks almost as if it were expecting to see these index files. I was wanting it to just show the directory with files in it so users can just download them. Not sure why it doesn't do that.


All times are GMT -5. The time now is 10:38 PM.