✓ Solved
NGINX: Error 403: Forbidden
I am trying to set up a nginx server to serve a static website. It is giving me 403 Forbidden
. I have tried sudo chown -R nginx:nginx *
in the /var/www/
directory and checked my config file. How can I get nginx to stop showing this error and serve my site properly? Any and all help is greatly appreciated!
OS: CentOS Stream 9
Config:
/etc/nginx/conf.d/kiwisky.net.conf
:
server {
listen 80;
listen [::]:80;
server_name kiwisky.net www.kiwisky.net;
root /var/www/kiwisky.net;
index home.html;
gzip on;
gzip_comp_level 3;
gzip_types text/plain text/css application/javascript image/*;
}