This is my first time using Amazon EC2. I'm running a server with Apache 2.4.6, and I can't seem to get it working when I access the public DNS or Elastic IP address. The error message I get is:
Forbidden You don't have permission to access /index.html on this server.
I have checked the permissions of this file (755). I have a VirtualHost
block in my httpd.conf
file as follows:
Listen 80
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/var/www/html"
ServerName my-ec2-public-dns-url
</VirtualHost>
My Security Group settings in AWS are set to Anywhere for both HTTP and HTTPS.
When I check the error log, it says:
AH00132: file permissions deny server access: /var/www/html/index.html
What am I doing wrong?