Nginx
HTTP 403: Forbidden after installing a site
If you receive a HTTP 403: Forbidden response after installing a site, this typically indicates that there is noindex.php or index.html file present in the web directory. Nginx is configured to not display directory listings by default for security reasons.
Forge no longer deploys sites with a default index.html file. To resolve this issue, you should:
- Deploy your application code to the site.
- Ensure your application has an
index.phpfile in the web directory (typically/publicfor Laravel applications). - Verify that your site’s web directory is correctly configured in the site settings.
- Your deployment script completed successfully.
- The web directory path matches where your application’s entry point is located.
- File permissions are correct (Forge sets these automatically during deployment).