Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Heroku 403 Error

apache

Started by PJ Moriarty 8 years ago · 1 replies · 3330 views
8 years ago

I am attempting to run the my application on heroku. I have followed the steps outlined in the documentation precisely, deploying only the the grav+admin code without modification. When I deploy, I get a 403 error, reading

"Forbidden
You don't have permission to access / on this server."

I suspect this may be related to some configuration of the htaccess file, but do not know what requires update.

I found the following message in the log file:
"Cannot serve directory /app/: No matching DirectoryIndex (index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive"

I assumed this related to an issue with the RewriteBase configuration, but I confirmed that the directory name matches the directory in which those index files are stored.

Any guidance is appreciated.

8 years ago

I think you'll just have to set your base_directory in your host to app/
Have you tried to put in an absolute url from within the server, e.d. like: /var/www/app/.. ?

Not sure on this, but that's my main guess

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by jeremycherfas, 18 hours ago
1 42 14 hours ago
Installation & Hosting · by motorambler, 2 weeks ago
8 359 6 days ago
Installation & Hosting · by antoinep, 3 months ago
8 936 3 months ago
Installation & Hosting · by Jürgen Dietrich, 9 months ago
0 600 9 months ago
Installation & Hosting · by rappluk, 11 months ago
0 645 11 months ago