Bug 213002 - Apache-2.2.3 shows Forbidden error
Summary: Apache-2.2.3 shows Forbidden error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: httpd
Version: 6
Hardware: i686
OS: Linux
medium
high
Target Milestone: ---
Assignee: Joe Orton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-30 15:22 UTC by Tamal Kanti Nath
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-30 16:12:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tamal Kanti Nath 2006-10-30 15:22:39 UTC
Description of problem:
The file I am trying to access has proper permission (644) to be accessed. But
it cannot be accessed. while other files with same permissions and in the same
directory can be accessed. the error shows in the browser is:
You don't have permission to access /icon.jpg on this server.
And the error in /var/log/httpd/error_log is:
[Mon Oct 30 20:18:14 2006] [error] [client 127.0.0.1] (13)Permission denied:
access to /icon.jpg denied

Version-Release number of selected component (if applicable):
Apache-2.2.3

How reproducible:
Download a file (a jpeg image for example) from Internet and save it in your
document root (e.g. /var/www/html/). Set the proper permission on it. Start
httpd (if stopped). Then try to access the file by entering
http://127.0.0.1/[filename] in the browser. The error "Forbidden" might show.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
 Error shows: Forbidden

Expected results:
 The file should be accessed. In my case the jpeg image(icon.jpg) should be
displayed.

Additional info:
It is a strange problem. When I make a copy of the file, the new copy can be
accessed. But when I rename it, the problem remains!

Comment 1 Joe Orton 2006-10-30 16:12:02 UTC
This is probably due to SELinux.  Try:

 # restorecon /var/www/html/<filename>

or try fedora-list or fedora-selinux-list for more help.

Comment 2 Tamal Kanti Nath 2006-10-31 12:52:49 UTC
(In reply to comment #1)
Yes, problem solved. It was due to SELinux. Thanks Joe Orton.


Note You need to log in before you can comment on or make changes to this bug.