![]() ![]() ![]() If the group is omitted, a group whose name equals that of user is used. To run worker processes as another user, change the user directive in nf: The maximum connections nginx will accept is given by max_clients = worker_processes * worker_connections.īy default, nginx runs the master process as root and worker processes as user http. Alternatively, worker_processes accepts the auto value since versions 1.3.8 and 1.2.5, which will try to autodetect the optimal value ( source). Generally, making it the number of hardware threads in your system is a good start. This setting ultimately defines how many connections nginx will accept and how many processors it will be able to make use of. You should choose a fitting value for worker_processes. General configuration Processes and connections Configuration example /etc/nginx/nf user http Tip: A Nginx configuration tool has been provided by DigitalOcean. If that is not the case, substitute your path instead. It is assumed that you use the default location for documents ( /usr/share/nginx/html). The examples below cover the most common use cases. More details and examples can be found in and the official documentation. You can modify the configuration by editing the files in /etc/nginx/ The main configuration file is located at /etc/nginx/nf. The default page served at is /usr/share/nginx/html/index.html.įirst steps with nginx are described in the Beginner’s Guide. Modules for nginx-mainline can be found in the Arch User Repository.įor a chroot-based installation for additional security, see #Installation in a chroot. ![]() It may be wise to review the list of modules for any you might need/want before making the nginx vs nginx-mainline decision. Note: All nginx modules available in the official repositories require the nginx package (as opposed to nginx-mainline) as a dependency. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |