LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-05-2009, 09:59 PM   #1
paulikus
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Rep: Reputation: 0
Suse 10.2 Apache 2.2.3 - directory browsing not working


I'm trying to get directory browsing working from a web site and get 403 permission denied no matter what. I've been through many many google articles on how to allow this but none of them work. restarting apache2 each time a change is made to httpd.conf but no change. for example, latest entry i tried is:

<Directory "/SC" >
Options FollowSymLinks MultiViews Indexes
AllowOverride all
</Directory>
 
Old 10-06-2009, 07:58 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,035

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Hi,

Do you have an 'Order' directive anywhere in your config ?

eg.
Code:
...
Order allow,deny
Allow from all
...
cheers

kbp
 
Old 10-06-2009, 12:44 PM   #3
paulikus
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I added this to the httpd.conf, restarted apache, but no joy

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Allow from all
</Files>
 
Old 10-06-2009, 05:00 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,035

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Does '/SC' map to a directory that the apache user can read ?
 
Old 10-07-2009, 06:35 AM   #5
paulikus
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
directory is wide open

"/SC" is symbolic link which points to the dir /home/SC. The ownership is root:root but permission is wide open (777)
 
Old 10-07-2009, 04:32 PM   #6
paulikus
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
error_log

I also see this in the error_log:

[Wed Oct 07 13:58:21 2009] [error] [client 10.127.122.111] Directory index forbidden by Options directive: /home/SC/iUSC_Logs/, referer: http://i17smba1
 
Old 10-07-2009, 04:40 PM   #7
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,035

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Sorry, the permissions on the symlink are 777 or the permissions on the directory are 777 ? ... it's probably not necessary to allow write access to the directory - perhaps you could change the permissions to 755 ?
 
Old 10-15-2009, 05:11 PM   #8
paulikus
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I found my problem. the Options in httpd.conf were apparently getting nullified by the line:
"Include /etc/apache2/default-server.conf". The file didn't even exist. I commented it out, did a rcapache restart and directory browsing is working!
 
  


Reply

Tags
apache, suse10


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 06:03 AM
Apache: show mp3 id tags in directory browsing? wijnands Linux - Software 1 08-09-2005 07:09 AM
SAMBA client stopped windows browsing from working - SuSE 9.1 mikemrh9 Linux - Networking 7 08-18-2004 01:38 PM
Disable Directory Browsing Apache bentman78 Linux - Software 2 07-09-2004 02:10 AM
suse 9.0 working directory snakedriver Linux - Newbie 1 03-25-2004 07:52 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration