LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2004, 07:59 AM   #1
dieter
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
Thumbs down Apache - 403 Forbidden - Access to Subdirectories


Hi all,

as a newbie in setting up an apache (1.3.9) with php4 and mySQL (3.22), I got:

403 Forbidden - You don't have permissions to access /doc/php/index.html on this server

when trying to reach files contained in subdirectories of /www


I installed:
* /www as DokumentRoot
* /www (and subdirectories) have 755-permissions and owner.group of www-data.www-data

I run apache as root - the user which opens the browser is part of the group www-data.

Questions:
* What causes this 403 error?
* How can I solve it ("open" subdirs of /www in httpd.conf or srm.conf)?
* Are those "sticky-bits" responsible for this access troubles- how to apply?

(Similar questions/answers in this forum didn't give me the right hint)

TIA for any help
Dieter
 
Old 03-11-2004, 08:57 AM   #2
dieter
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Strange, but It works now in some manner:

I renamed the directory /www/doc to /www/dc

I'm really confused - what did I do?
How can I prevent the 403 error in future?

Dieter
 
Old 03-25-2004, 12:51 PM   #3
tr4nsfix
Member
 
Registered: Mar 2004
Location: Toronto, Ontario
Distribution: Debian
Posts: 36

Rep: Reputation: 15
I ran into a similar problem when I was trying to setup apache to work in any other directory than /var/www...

The resolution turned out to be adding an entry for the new dir in httpd.conf like this:

<Directory /home/some_other_direcory/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>

then reloading apache.
 
  


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
apache 403 forbidden? wezhousheng Linux - Networking 5 05-13-2005 12:15 AM
access 403 forbidden - user_dir sigurdne Linux - Newbie 6 11-27-2004 05:55 AM
Error 403 Forbidden access in Apache anoop_cn Linux - Software 1 09-21-2004 09:32 AM
Apache 403 Forbidden mrmike Linux - Newbie 3 07-10-2004 11:31 AM
Apache 403 Forbidden quozt Linux - Networking 10 02-24-2004 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:47 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