I'm in the midst of setting up a standard web server on EC2. However, I'm just getting a 403 error on remote access, despite following tutorials (which describe a very simple process).
So far, I have
- Installed httpd and associating
- Mounted /var/www/vhosts/foo to an s3 bucket dir.
- Installed php
Edited httpd conf adding a NameVirtualHost *:80, a
<Directory "/var/www/vhosts/foo/*bar*"> Satisfy Any Order Allow,Deny Allow from all </Directory>
SuexecUserGroup root root
<VirtualHost *:80> ServerName foo.mydomain.com ServerAlias mydomain.com ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/vhosts/foo/bar/htdocs CustomLog /var/www/vhosts/fooh/bar/logs/access.log common ErrorLog /var/www/vhosts/foo/bar/logs/error.log SuexecUserGroup root root ScriptAlias /cgi-bin/ "/var/www/vhosts/foo/cgi-bin.bar/" </VirtualHost>
Now, I'm aware root isn't great at this stage. But, until the problem is sorted I haven't gone about changing that.
I've restarted httpd - I just get 403 errors. I can see the hits on access.log on the subdomain etc. so it is getting through (via my foo.mydomain.com) - but it's not going past a 403 and I can't figure out a reason why. All the tutorials say this is mega easy.