# Nginx doesn't response any request

**URL:** <https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487>\
**Category:** NGINX\
**Created:** [May 4, 2012, 12:20pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487 "2012-05-04T12:20:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 4, 2012, 12:20pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/1 "2012-05-04T12:20:09Z")

</div>

hi,

I have installed nginx on linux and started it successful with default  
config file.  
but I can’t open my website. the error message in the IE is the  
connection has been interrupt.  
and there is nothing in the access log and error log.

here is information of strace:

rt\_sigtimedwait([ALRM IO RT\_11 RT\_12], {si\_signo=SIGRT\_11, si\_code=0x1,  
si\_pid=65, si\_uid=7, si\_value={int=16, ptr=0x10}}, 0, 8) = 43  
write(10, “2012/05/04 17:51:59 [debug] 1628”…, 68) = 68  
write(10, “2012/05/04 17:54:59 [debug] 1628”…, 57) = 57  
write(10, “2012/05/04 17:54:59 [debug] 1628”…, 68) = 68  
write(10, “2012/05/04 17:54:59 [debug] 1628”…, 50) = 50  
write(10, “2012/05/04 17:54:59 [debug] 1628”…, 53) = 53  
rt\_sigtimedwait([ALRM IO RT\_11 RT\_12],

please help me investigate it.

Thanks,  
Rock

Posted at Nginx Forum:

> **[nginx doesn't response any request](https://forum.nginx.org/read.php?2,226053,226053#msg-226053)**
>
> hi, I have installed nginx on linux and started it successful with default config file. but I can't open my website. the error message in the IE is the connection has been interrupt. and there is nothing in the access log and error log. here is...

---

<div class="post-metadata">

**Author:** ![rock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@rock](https://www.ruby-forum.com/u/rock)\
**Post date:** [May 4, 2012, 12:21pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/2 "2012-05-04T12:21:26Z")

</div>

here is conf:

#user nobody;  
worker\_processes 1;

#error\_log logs/error.log;  
#error\_log logs/error.log notice;  
error\_log logs/error.log debug;

#pid logs/nginx.pid;

events {  
worker\_connections 1024;  
}

http {  
include 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 logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
    listen 80;
    server_name datalink.com.cn www.datalink.com.cn;

    #charset koi8-r;

    access_log logs/host.access.log main;

    location / {
        root html;
        index index.html index.htm;
    }

#location /nginx_status {
    # stub_status on;
    # access_log off;
    #}

    #error_page 404 /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page 404 500 502 503 504 /50x.html;
    location = /50x.html {
        root html;
    }

```

}

Posted at Nginx Forum:

> **[Re: nginx doesn't response any request](https://forum.nginx.org/read.php?2,226053,226054#msg-226054)**
>
> hi, I have installed nginx on linux and started it successful with default config file. but I can't open my website. the error message in the IE is the connection has been interrupt. and there is nothing in the access log and error log. here is...

---

<div class="post-metadata">

**Author:** ![rock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@rock](https://www.ruby-forum.com/u/rock)\
**Post date:** [May 5, 2012, 3:51am UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/3 "2012-05-05T03:51:38Z")

</div>

On Fri, May 04, 2012 at 06:20:35AM -0400, rock wrote:

Hi there,

I suggest you check non-nginx things like routers, firewalls, and other  
access control devices.

> ```
> server {
> listen 80;
> server_name datalink.com.cn www.datalink.com.cn;
> 
> ```

When I try to access something on that public host (currently  
210.82.101.77), the only tcp traffic I see back is a repeated syn-ack,  
followed after 5 minutes by a reset.

It looks like plain ack packets are not getting through to your  
service. It is unlikely that there is anything nginx can do about that.

If this mail makes no sense to you, ask your system- or  
network-administrator about firewalls or iptables that might be between  
your server and the internet.

Good luck with it,

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![rock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@rock](https://www.ruby-forum.com/u/rock)\
**Post date:** [May 7, 2012, 9:32am UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/4 "2012-05-07T09:32:28Z")

</div>

Rock,

Are you using freebsd?

Regards,  
Joe

---

<div class="post-metadata">

**Author:** ![rock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@rock](https://www.ruby-forum.com/u/rock)\
**Post date:** [May 8, 2012, 4:03am UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/5 "2012-05-08T04:03:18Z")

</div>

Hi,Joe,

I am using Red Hat Enterprise Linux ES release 3 (Taroon Update 6).

Thanks,  
Rock

Posted at Nginx Forum:

> **[Re: nginx doesn't response any request](https://forum.nginx.org/read.php?2,226053,226157#msg-226157)**
>
> hi, I have installed nginx on linux and started it successful with default config file. but I can't open my website. the error message in the IE is the connection has been interrupt. and there is nothing in the access log and error log. here is...

---

<div class="post-metadata">

**Author:** ![rock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@rock](https://www.ruby-forum.com/u/rock)\
**Post date:** [May 8, 2012, 5:17am UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/6 "2012-05-08T05:17:57Z")

</div>

when I use below command at nginx host the command is block and nothing  
is back.  
curl [http://localhost](http://localhost)

and below is trace of nginx thread(with strace -p thread):

{si\_signo=SIGRT\_11, si\_code=0x1, si\_pid=65, si\_uid=6, si\_value={int=1,  
ptr=0x1}}, 0, 8) = 43  
rt\_sigtimedwait([ALRM IO RT\_11 RT\_12],

Posted at Nginx Forum:

> **[Re: nginx doesn't response any request](https://forum.nginx.org/read.php?2,226053,226158#msg-226158)**
>
> hi, I have installed nginx on linux and started it successful with default config file. but I can't open my website. the error message in the IE is the connection has been interrupt. and there is nothing in the access log and error log. here is...

---

<div class="post-metadata">

**Author:** ![rock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@rock](https://www.ruby-forum.com/u/rock)\
**Post date:** [May 8, 2012, 6:22am UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/7 "2012-05-08T06:22:13Z")

</div>

[root@localhost nginx]# uname -a  
Linux localhost.localdomain 2.4.21-37.EL #1 SMP Wed Sep 7 13:32:18 EDT  
2005 x86\_64 x86\_64 x86\_64 GNU/Linux

[root@localhost nginx]# ./nginx -v  
nginx version: nginx/1.0.15

Posted at Nginx Forum:

> **[Re: nginx doesn't response any request](https://forum.nginx.org/read.php?2,226053,226160#msg-226160)**
>
> hi, I have installed nginx on linux and started it successful with default config file. but I can't open my website. the error message in the IE is the connection has been interrupt. and there is nothing in the access log and error log. here is...

---

<div class="post-metadata">

**Author:** ![rock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@rock](https://www.ruby-forum.com/u/rock)\
**Post date:** [May 7, 2012, 8:07am UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/8 "2012-05-07T08:07:37Z")

</div>

Hi Francis D.,

Thanks for your time and your response.

I also ever thought the problem is about iptables and so on. but when I  
stop iptables service the problem also is there.  
and when I stop nginx and start a web server with port 80 the web  
service is working fine.

so it is very strange. Any ideas about that.

Best Regards,

Rock

Posted at Nginx Forum:

> **[Re: nginx doesn't response any request](https://forum.nginx.org/read.php?2,226053,226131#msg-226131)**
>
> hi, I have installed nginx on linux and started it successful with default config file. but I can't open my website. the error message in the IE is the connection has been interrupt. and there is nothing in the access log and error log. here is...

---

<div class="post-metadata">

**Author:** ![rock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@rock](https://www.ruby-forum.com/u/rock)\
**Post date:** [May 8, 2012, 3:14pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-response-any-request/219487/9 "2012-05-08T15:14:28Z")

</div>

rock, if you are using RedHat EL and when nginx is listening on port 80  
there is no problem, my first idea is that SELinux is denying that  
access, try with this:

grep nginx /var/log/audit/audit.log | audit2allow -m nginx \> nginx.te

and check if there are rules granting access to nginx … if that’s true,  
you can fix it with this:

grep nginx /var/log/audit/audit.log | audit2allow -M nginx  
semodule -i nginx.pp

then restart nginx and check if it is working… or you can check if it  
is trying to

–  
Anielkis
