LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Allowing directory browing in apache (https://www.linuxquestions.org/questions/slackware-14/allowing-directory-browing-in-apache-465044/)

cwwilson721 07-17-2006 10:21 PM

Allowing directory browing in apache
 
How do I enable this? I have a directory on one of my websites I want others to browse...

All I get is
Code:

Forbidden

 You don't have permission to access dirname on this server.

I used to be able to....

apache 1.3.36

gilead 07-17-2006 11:12 PM

All you should need to do is allow the Indexes option and then set it up with IndexOptions:
Code:

<Directory "/var/www/www/somedir">
  Options Indexes
  IndexOptions FancyIndexing FoldersFirst IgnoreCase VersionSort NameWidth=*
</Directory>

Either that, or the user/group that Apache is running as doesn't have file system (or SELinux) permissions for the directory.

Was that what you were looking for?

cwwilson721 07-17-2006 11:33 PM

Yeppers...Let me try it out...

I'll let you know if that resolves it.

(Reading through the httpd.conf file after driving 750+ miles today got my brain twisting...)

cwwilson721 07-17-2006 11:42 PM

That did it. Thank you

gilead 07-18-2006 01:42 AM

Quote:

Originally Posted by cwwilson721
(Reading through the httpd.conf file after driving 750+ miles today got my brain twisting...)

No problem, but... you drove 750 miles today??? I take it that remote management was out of the question and your ISP's Linux support is even worse than some of ours here ;)

cwwilson721 07-22-2006 12:06 PM

No, I drive for a living, never have time for remote managing anything.

And my is awesome. No blocks on anything, no 'auto' a/v, all up to me. I love it.

cwwilson721 08-11-2006 05:33 PM

OK. Additional question. I can now access the directory/browse it. However, when I click on the file, or rt click and 'save link to', it gives me the following error:
Code:

Forbidden

You don't have permission to access /directory/filename on this server.

What am I missing?

raska 08-11-2006 05:49 PM

did you check the permissions in the filesystem? Looks like so :scratch:

cwwilson721 08-11-2006 05:51 PM

Permissions are fine. They are symlinks in a subfolder of one of my virtual sites.

Solution: I added
Code:

FollowSymLinks
to the 'Options' for the directory in httpd.conf.

I feel like such a Homer.

raska 08-11-2006 05:54 PM

oh well... cheer up! Can happen to anyone ;)


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