When you try to enter the localhost, a 403 Forbidden error occurs. I can throw configs. Help, please, what to do?

Closed due to the fact that off-topic participants PashaPash , Olter , Nick Volynkin , fori1ton , Vladimir Glinskikh 3 Aug '15 at 12:39 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - PashaPash, Olter, Nick Volynkin, fori1ton, Vladimir Glinskikh
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • index.php is where it should be?) - ivkremer
  • Check permissions. - gecube
  • Did you mean index.html? - it lies along this path /usr/share/nginx/html/index.html - ServerZ
  • Once again - check access rights (access mask + owner + group). This effect can also be provided by enabled SELinux. - gecube
  • permissions on the executive file: owner - read and write # group - only read others - read only - ServerZ

1 answer 1

Alternatively, you could change the server section, and change the root property, or add the location directive and do not configure it correctly because of what it covers for you.

Lay out the nginx server config, unless of course there have been any changes. And look at the error log (error log), what is written there.