Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

403 Error on 404 Page #53

Closed
alecdibble opened this issue Feb 2, 2017 · 1 comment
Closed

403 Error on 404 Page #53

alecdibble opened this issue Feb 2, 2017 · 1 comment

Comments

@alecdibble
Copy link

I have recently encountered a very odd error while utilizing this buildpack. Here is my static.json (all urls changed to hide proprietary info):

{
  "root": "dist/",
  "error_page": "404.html",
  "clean_urls": true,
  "proxies": {
    "/gift-cards": {
      "origin": "https://www.test.com/test"
    }
  },
  "redirects": {
    "/": {
      "url": "/test"
    }
  },
  "https_only": true
}

Here is my directory structure:

screen shot 2017-02-01 at 6 21 27 pm

When trying to access a page that 404s on Heroku, I get the follow error in the logs:

app[web.1]: 2017/02/02 02:13:16 [error] 23#0: *6 directory index of "./dist/" is forbidden, client: 10.146.110.248, server: , request: "GET / HTTP/1.1", host: "www.test.com"

@alecdibble
Copy link
Author

I solved the issue on my fork: https:/alecdibble/heroku-buildpack-static

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant