Nginx doesn't response any request

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:

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:

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. [email protected]

Rock,

Are you using freebsd?

Regards,
Joe

Hi,Joe,

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

Thanks,
Rock

Posted at Nginx Forum:

when I use below command at nginx host the command is block and nothing
is back.
curl 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:

[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:

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:

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