LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-08-2005, 02:17 AM   #1
lothario
Member
 
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
HTTP 403 (Forbidden) error


Just moved my web pages to a new Fedora Core 3, Apache system.

Put them in the "/var/www/html/bcd" directory.

When I put this URL in my browser:
https://192.168.2.105/bcd/

But instead of the index.php page, I get:

HTTP 403 (Forbidden)
You are not authorized to view this page

What should be fixed to view this page?
 
Old 02-08-2005, 02:51 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
why https? that's used for secure logins
 
Old 02-08-2005, 02:54 AM   #3
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
https is working on this machine.

https://192.168.2.105/ does work.
It does show the Fedora Core Test Page.

The web pages that I moved need to be accessed in a secure manner.
 
Old 02-08-2005, 03:44 AM   #4
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
I would gues the permissions of directory "/var/www/html/bcd" are wrong. What is the output of
Code:
 ls -l /var/www/html/bcd
?

Groetjes,

Kees-Jan
 
Old 02-08-2005, 03:52 AM   #5
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
The directory:
Code:
drwxr-xr-x  3 root root     4096 Feb  7 19:51 bcd
Its contents:
Code:
-rw-r--r--   1 root root   3344 Jan 24 13:48 index.html
-rw-r--r--   1 root root   7433 Jan 24 13:48 index.php
 
Old 02-08-2005, 04:21 AM   #6
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
That should work. I'm no php guru, but I can imagine it might be doing something that requires more files to be readable. As a quick test, I recommend renaming index.php to something else, and see if the situation improves.

Groetjes,

Kees-Jan
 
Old 02-08-2005, 04:43 AM   #7
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Apparently, it is a Web Page Security Context issue.

I found this:
http://www.siliconvalleyccie.com/lin...pachebasic.htm
It helped.

I did:
Code:
chcon  -R  -h  -t  httpd_sys_content_t    /var/www/html/bcd
That got rid of the 403 error
 
  


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
error 403 Forbidden symbolic link not allowed vree13 Linux - Software 8 02-14-2008 08:58 PM
apache related problem (HTTP Error 403 - Forbidden ) spandau Linux - Networking 29 09-01-2005 06:06 PM
Error 403 Forbidden access in Apache anoop_cn Linux - Software 1 09-21-2004 09:32 AM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 08:35 PM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 07:47 AM


All times are GMT -5. The time now is 01:44 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 Google+: linuxquestions
Open Source Consulting | Domain Registration