Linux serverlinux web serverNETWORK ADMINISTRATIONS

How to fix Nginx 403 Forbidden Error

Learn how to fix the 403 forbidden error from Nginx by making sure you have your index directive configured and your permissions are correct.

Find more at https://tonyteaches.tech
Check out my vlog channel @TonyFlorida

#nginx #403forbidden

source

by Tony Teaches Tech

linux web server

29 thoughts on “How to fix Nginx 403 Forbidden Error

  • Using Nginx I got the 403 forbidden error and I moved the sybolic link to a previously configured directory, it didn't seem to like the /var/www/html/ default directory but was fine in one that I had previosuly configured as a domain as per Tonys other tutorial https://youtu.be/yWVD6qmQrb8

  • hi tony, i,m trying to install nginx on opensuse…..any notice about it??

  • after that permissions i have problem wth premissions to venv folder.

  • recently i got this error but i don't know why.

    here's my case

    i have 2 front end bundling web app
    let say it's version 1.1 and version 1.2

    and I have 2 machine which is Ubuntu & Rhel

    when mounted those web app on nginx in ubuntu
    version 1.1 & 1.2 is ok with no problem..
    everything is fine.

    and the problem is
    i mounted version 1.1 on nginx in RHEL with same configuration & permission in ubuntu = no problem
    and
    i mounted version 1.2 on nginx in RHEL with same configuration & permission in ubuntu = 403 error..

    can some give me some insight

  • I still get this problem, but i use docker container which uses nginx

  • I am a Mandarin teacher and when my students sign in their Duolinggo sites, the 403 forbidden error will show up. My school IT manager says it is the Duolinggo website issue, not the issue from our school end. I am wondering if it is true and Duolingo just did their maintenance. From your video, it gave me the impression that my school should look into this. Is this right? Thanks

  • For testing purposes, I placed an application in the /root/test-app/ directory. Setting up Nginx I got a 403 forbidden error. I tried all the methods provided in this video which didn't work for me. But thanks for the video :).

    Doing some digging I found out that if I'm running an application under the /root folder I need to specify the directive >> user root; << in the Nginx config file.

    This tells Nginx to run the Nginx worker with root privileges. Thus it can access the /root directory. So that makes sense :).

  • i got lost when he pull up the black window at 0:30 >< im just trying to watch porn and this msg keeps poping up "403 Forbidden Error"

  • sorry men you in a hurry then go to finish your's jobe an after that return to explane how to fix that error 403 please

  • what if you have more than one file in your root? how do you delete

  • Please tell me is it possible to bypass forbidden 403 on other people's sites, I need access specifically to the directory located on i pximg net.

  • I got this error and couldn't find a way to fix it,but I installed some other browser and it's completely fine now.No errors.
    Ps: I had difficulty doing it since I'm on mobile

  • Hello Tony, i am getting the same 403 error, i am a novice no idea about ubuntu, however it was showing successfully with the help of your video (How to Create an Always Free Website on the Oracle Cloudhttps://www.youtube.com/watch?v=yWVD6qmQrb8), but i can see while using the link for commands in the video, i have removed some file sudo rm /var/www/html/index.nginx-debian.html and then i can see the link file is creating a separate folder wordpress instead of html, i am stuck now 🙁

  • Hey Tony, When the domain doesn't get created immediatly, how long did you have to wait +- ?

  • can this be done on windows or is it mac only?

  • hey man, im watching this with no clue where i can open that file you show in the beginning where can i find that on my laptop? ty!

Comments are closed.