Linux – Forbidden You don’t have permission to access this resource

apache-2.4centos7linuxreverse-proxy

I have recently installed apache 2.4 plus mod_ssl I am using this apache as a proxy server and redirecting traffic to tomcat.

The issue I am facing right now is that everything works without HTTP but I do see an error when I try to access with https.

Not Found
The requested URL was not found on this server.

httpd.conf: This is I am using to redirect the traffic to my tomcat.

<VirtualHost *:80>
    ProxyPreserveHost On
    ProxyRequests Off
    ServerName www.example.com
    ServerAlias example.com
    ProxyPass / http://localhost:8080/example/
    ProxyPassReverse / http://localhost:8080/example/
</VirtualHost>

Everything work but the site doesn't come up with HTTPS.

Best Answer

When it give you an error with resources permission, it is probably saying that you have change the directory's permission.

Check the directory owner

ls -l /var/www/html/

Maybe should be own by apache.