LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   HTTP 403 (Forbidden) error (https://www.linuxquestions.org/questions/fedora-35/http-403-forbidden-error-287550/)

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:
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?

{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.

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.

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
Code:

ls -l /var/www/html/bcd
?

Groetjes,

Kees-Jan

lothario 02-08-2005 03:52 AM

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


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.

Groetjes,

Kees-Jan

lothario 02-08-2005 04:43 AM

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


All times are GMT -5. The time now is 09:25 AM.