3

I have a WordPress site on a LAMP server (CentOS 7). In the WordPress root folder I added a folder called minisite.

www.example.com/minisite/file.html

While trying to access the minisite directory from the browser I get a 403 error.

How can I allow the access to the minisite directory?

I read the following question but the answer wasn't very clear to me. Also, I couldn't figure out in what file the changes are made. Nginx - Allow access to folder directory only by referring URL

MrWhite
  • 13,315
DavSev
  • 169

1 Answers1

3

O.k first I had to find the configuration file. I found it in the /etc/nginx/conf.d directory.

Than I cane across this tutorial: http://nginx.org/en/docs/http/ngx_http_autoindex_module.html

I added this block inside the server block:

location /srita/ {
index index.html;
autoindex on;
}
DavSev
  • 169