403 forbidden error on nginx server

I have the following code, which for some reason is creating a 403 error when I go to my domain:


server {
        listen 80;
        root /home/site;
        index landing.html;
        server_name site.com www.site.com;

        location / {
                try_files $uri $uri/ /landing.html;
                index landing.html;

What could be creating this problem? I'm new to this, so please be easy on me. Also note that I replaced the actual domain with site.com for this post

0 Replies


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct