Apache 2.2 Access forbidden

I'm trying to access my localhost or server name running apache, but I keep getting this message. Access forbidden.
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
The apache log file says this, client denied by server configuratoin.
I've tried granteding/allowing access in the httpd-xmapp-conf and the httpd.conf file.
I find it strange that I can access the phpmyadmin via http or https. I've tried disabling SSL, but I'm still getting the error.
RoccatAsked:
Who is Participating?
 
David FavorConnect With a Mentor Linux/LXD/WordPress/Hosting SavantCommented:
First, you can't use SSL on a local host. You can only use a SSL cert (signed by a valid SSL issuer) with a public IP.

In other words you must be able to resolve a domain to an IP + then have that IP return a correct cert for the resolved domain.

I'm guessing you're referring to an Apache 403 error.

This normally occurs when a DocumentRoot directory is incorrectly specified or the directory specified actually is unreadable to your local Apache user.

Try running this command + see if any diagnostics emit.

apachectl -t

Open in new window

0
 
RoccatAuthor Commented:
That' exactly what the issue was, thanks for the prompt response.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.