-   Fedora (
-   -   HTTP 403 (Forbidden) error (

lothario 02-08-2005 02:17 AM

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:

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?

{BBI}Nexus{BBI} 02-08-2005 02:51 AM

why https? that's used for secure logins

lothario 02-08-2005 02:54 AM

https is working on this machine. does work.
It does show the Fedora Core Test Page.

The web pages that I moved need to be accessed in a secure manner.

kees-jan 02-08-2005 03:44 AM

I would gues the permissions of directory "/var/www/html/bcd" are wrong. What is the output of

ls -l /var/www/html/bcd



lothario 02-08-2005 03:52 AM

The directory:

drwxr-xr-x  3 root root    4096 Feb  7 19:51 bcd
Its contents:

-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

kees-jan 02-08-2005 04:21 AM

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.



lothario 02-08-2005 04:43 AM

Apparently, it is a Web Page Security Context issue.

I found this:
It helped.

I did:

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

All times are GMT -5. The time now is 07:01 AM.