Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Heroku 403 Error

apache

Started by PJ Moriarty 8 years ago · 1 replies · 2948 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 antoinep, 16 hours ago
5 62 10 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 63 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 63 8 months ago
Installation & Hosting · by N, 12 months ago
3 74 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 62 1 year ago