Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

"pid" directive is duplicate in /etc/nginx/nginx.conf (2 replies)

$
0
0
Hi,

I'm trying to set up a very simple nginx web server on top of an archlinux distribution. Here is my nginx.conf :

user http;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
}

it's a very simple one, no nested includes other than mime.types. But when I try to start my server, I have the following error :

"pid" directive is duplicate in /etc/nginx/nginx.conf

And I don't know why, as there are no other "pid" directive. If I comment the "pid" line, it's ok.

Can you explain me what am I missing ?

Thanks in advance

Viewing all articles
Browse latest Browse all 7229

Latest Images

Trending Articles



Latest Images

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