Troubleshoot: AWS Elastic Beanstalk Returns 403 Forbidden Error
Problem: When trying to access an application server hosted on AWS’ Elastic Beanstalk, you’re faced with a 403 error that looks something like this:
You don’t have permission to access / on this server.
Solution: Many times this is caused by zipping your files in a nested folder. In order to circumvent this, when zipping your files follow these instructions:
- Navigate inside of the directory you want to zip, select all the files located there, then zip them into a folder. This prevents a nested folder from being created inside the .zip.
- Upload to your Elastic Beanstalk server and ensure it works.