Access deny for CSS Stylesheet


I’m deploying my website in Amplify AWS.

At first everything worked good. But after an update the stylesheet did not want to load anymore. (And I did not touch the config.yaml…)

I have repeatedly checked the “baseURL” and it seems ok.
My webSite without style sheet:

I tried with another URL and I change my baseURL, and everything work like a charm!

Anybody have a clue?

$hugo env
Hugo Static Site Generator v0.80.0/extended linux/amd64 BuildDate: 2021-02-09T18:47:48Z (ubuntu 0.80.0-6)

The code is accessible here: https: //github. com /shq1/hugo (added space to bypass the limit of 2 url)


Looking at developer tools you are getting a 403 forbidden error. This is a policy error you should check in IAM policies on AWS. My guess is for permissions for files not in the root or based on only allow certain files.

1 Like