LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-09-2007, 11:16 PM   #1
ride153
Member
 
Registered: Apr 2005
Location: Northeast USA
Distribution: current is PCLOS (server) and Suse (desktop)
Posts: 102

Rep: Reputation: 15
apache sub directory access


i can't seem to figure this out.

i want apache to allow sub-directory folder access but when i got www.myserver.com/folder i get the error

Access forbidden 403 error.

any one know how to allow this? and im using Apache httpd 2.0.

thanks
 
Old 03-10-2007, 01:20 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The user Apache is running as needs read and execute permission on the directory. In addition, if you've disabled directory indexing and there's now index file you'll see the 403 IIRC.
 
Old 03-10-2007, 03:19 AM   #3
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
Post back the output of the command given below,

Quote:
ls -ald folder
As btmiller mentioned in his post, that directory doesn't have the proper permissions for Apache to access it.
 
Old 03-10-2007, 07:13 AM   #4
ride153
Member
 
Registered: Apr 2005
Location: Northeast USA
Distribution: current is PCLOS (server) and Suse (desktop)
Posts: 102

Original Poster
Rep: Reputation: 15
thx for the replies, Here is ls -ald command.

drwxrwxrwx 7 root root 4096 Mar 10 00:10 wwwfolder/

I think this is bcuz of disabled directory indexing but i dont know how to enable it? I guess its in the httpd.conf?

Last edited by ride153; 03-10-2007 at 07:14 AM.
 
Old 03-10-2007, 07:24 AM   #5
fooks
Member
 
Registered: Jan 2007
Location: Ukraine
Posts: 47

Rep: Reputation: 15
Find host configuration section for myserver.com, and add Indexes option:

<Directory / >
Options +Indexes
</Directory>

(dont forget to restart httpd)
 
Old 03-10-2007, 07:47 AM   #6
ride153
Member
 
Registered: Apr 2005
Location: Northeast USA
Distribution: current is PCLOS (server) and Suse (desktop)
Posts: 102

Original Poster
Rep: Reputation: 15
thx this worked

using
<Directory /var/www/html/folder>
Options +Indexes
</Directory>
 
  


Reply



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
How to access the nodes under the /dev directory to access the device? Nishant Desai Programming 2 11-18-2006 04:09 PM
need to link a home directory to an apache directory Melsync Linux - Server 3 09-30-2006 05:08 AM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM
apache unable to access /home/*/public_html directory cavemanf16 Linux - Software 6 07-08-2004 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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