LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-17-2006, 11:21 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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
 
Old 07-18-2006, 12:12 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 07-18-2006, 12:33 AM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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...)
 
Old 07-18-2006, 12:42 AM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
That did it. Thank you
 
Old 07-18-2006, 02:42 AM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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
 
Old 07-22-2006, 01:06 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 08-11-2006, 06:33 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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?
 
Old 08-11-2006, 06:49 PM   #8
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
did you check the permissions in the filesystem? Looks like so
 
Old 08-11-2006, 06:51 PM   #9
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 08-11-2006, 06:54 PM   #10
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
oh well... cheer up! Can happen to anyone
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 07:03 AM
Allowing user access to one directory only aje Slackware 5 05-25-2005 09:12 PM
Allowing Win2k active directory users to logon to redhat 9 box. bobo_snyder Linux - Newbie 1 10-05-2004 07:08 PM
Allowing connections to apache and qmail in hosts.allow reesee Linux - Security 2 04-11-2004 11:41 PM
Apache server allowing ssh codefather Linux - Software 8 06-26-2003 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration