Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

What directory & file permissions do you recommend?

$
0
0
What directory and file permissions do you recommend for a basic website? At some point, I will be adding additional websites as subdirectories of the /etc/nginx/html path.

I'm installing Nginx 1.18.0 from source of a CentOS server.

My configure looks like:

./configure --prefix=/etc/nginx --modules-path=/etc/nginx/modules --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module --with-pcre --with-http_gunzip_module --with-http_gzip_static_module

After compilation, I run this command:
useradd --system --home /var/cache/nginx --shell /sbin/nologin --comment "nginx user" --user-group nginx

Note: I'm not sure if the command is correct as I don't have a /var/cache/nginx directory (?) and I'm not sure if the rest of the command syntax is correct?

Thank you,
Ed

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>