# Nginx running as nginx.conf

**URL:** <https://www.ruby-forum.com/t/nginx-running-as-nginx-conf/222218>\
**Category:** NGINX\
**Created:** [August 17, 2012, 6:19pm UTC](https://www.ruby-forum.com/t/nginx-running-as-nginx-conf/222218 "2012-08-17T18:19:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 17, 2012, 6:19pm UTC](https://www.ruby-forum.com/t/nginx-running-as-nginx-conf/222218/1 "2012-08-17T18:19:36Z")

</div>

hi guys

i have nginx on 2 servers. in one of them i’m getting the following  
correct  
output:

# netstat -tulpn | grep -e nginx

tcp 0 0 0.0.0.0:80 0.0.0.0:\* LISTEN  
4735/nginx

# ps aux | grep nginx

root 4735 0.0 0.0 41028 944 ? Ss Aug10 0:00 nginx:  
master process /usr/sbin/nginx -c /etc/nginx/nginx.conf  
nginx 4736 1.8 0.0 45644 6160 ? R Aug10 177:10 nginx:  
worker process

However on the other I’m getting the following wrong output:

# netstat -tulpn | grep -e nginx

tcp 0 0 0.0.0.0:80 0.0.0.0:\* LISTEN  
7650/nginx.conf

# ps aux | grep nginx

root 7650 0.0 0.0 44632 1092 ? Ss 00:27 0:00 nginx:  
master process /usr/sbin/nginx -c /etc/nginx/nginx.conf  
nginx 7651 0.1 0.2 48412 5552 ? S 00:27 1:04 nginx:  
worker process

Both servers are working fine and nginx is serving the pages without  
problems however I don’t know why on one of my servers it is running as  
‘nginx.conf’ when it should be running as ‘nginx’

Any ideas?

Posted at Nginx Forum:

> **[nginx running as nginx.conf](https://forum.nginx.org/read.php?2,229866,229866#msg-229866)**
>
> hi guys i have nginx on 2 servers. in one of them i'm getting the following correct output: # netstat -tulpn | grep -e nginx tcp 0 0 0.0.0.0:80 0.0.0.0:\* LISTEN 4735/nginx # ps aux | grep nginx root

---

<div class="post-metadata">

**Author:** ![theguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f19dbf/32.png) [@theguy](https://www.ruby-forum.com/u/theguy)\
**Post date:** [August 17, 2012, 6:33pm UTC](https://www.ruby-forum.com/t/nginx-running-as-nginx-conf/222218/2 "2012-08-17T18:33:38Z")

</div>

HI,  
Please Paste your /etc/nginx/nginx.conf

THX.

Posted at Nginx Forum:

> **[Re: nginx running as nginx.conf](https://forum.nginx.org/read.php?2,229866,229867#msg-229867)**
>
> hi guys i have nginx on 2 servers. in one of them i'm getting the following correct output: # netstat -tulpn | grep -e nginx tcp 0 0 0.0.0.0:80 0.0.0.0:\* LISTEN 4735/nginx # ps aux | grep nginx root

---

<div class="post-metadata">

**Author:** ![theguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f19dbf/32.png) [@theguy](https://www.ruby-forum.com/u/theguy)\
**Post date:** [August 17, 2012, 6:49pm UTC](https://www.ruby-forum.com/t/nginx-running-as-nginx-conf/222218/3 "2012-08-17T18:49:24Z")

</div>

user nginx;  
worker\_processes 1;

error\_log /var/log/nginx/error.log warn;  
pid /var/run/nginx.pid;

worker\_rlimit\_nofile 8192;

events {  
worker\_connections 7168;  
use epoll;  
}

http {  
server\_names\_hash\_max\_size 2048;

```
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] 

```

“$request”  
’  
'$status $body\_bytes\_sent “$http\_referer” ’  
‘“$http\_user\_agent” “$http\_x\_forwarded\_for”’;

```
access_log off;

sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;

keepalive_timeout 10;

gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
ignore_invalid_headers on;

client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 4k;
large_client_header_buffers 4 32k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;

include /etc/nginx/conf.d/*.conf;

```

}

Both are running the same nginx.conf so I don’t know what’s going on.

Im running CentOS 6.3 64-bits

Posted at Nginx Forum:

> **[Re: nginx running as nginx.conf](https://forum.nginx.org/read.php?2,229866,229868#msg-229868)**
>
> hi guys i have nginx on 2 servers. in one of them i'm getting the following correct output: # netstat -tulpn | grep -e nginx tcp 0 0 0.0.0.0:80 0.0.0.0:\* LISTEN 4735/nginx # ps aux | grep nginx root
