<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><span class="Apple-tab-span" style="white-space:pre">        </span>I am having issues with IPv6 being able to view any files static or dynamic. I keep getting the error&nbsp;</div><div>curl -6 <a href="http://ipv6.example.com/test.png">http://ipv6.example.com/test.png</a></div><div><br></div><div><div>2011/05/14 16:18:36 [info] 6217#0: *1 client timed out (110: Connection timed out) while sending response to client, client: xxxx:xxx:xxxx:xxxx:xxx:xxxx:xxxx:xxxx, server:&nbsp;<a href="http://example.com">example.com</a>, request: "GET /test.png HTTP/1.1", host: "example.com"</div></div><div><br></div><div>but i can do HEAD requests and such and get a response.&nbsp;</div><div><br></div><div><div>&nbsp;curl -6 -I <a href="http://ipv6.example.com">ipv6.example.com</a></div><div>HTTP/1.1 200 OK</div><div>Server: nginx/1.0.2</div><div>Date: Sun, 15 May 2011 08:44:31 GMT</div><div>Content-Type: text/html</div><div>Content-Length: 0</div><div>Last-Modified: Thu, 24 Jan 2008 19:27:58 GMT</div><div>Connection: keep-alive</div><div>Keep-Alive: timeout=10</div><div>Accept-Ranges: bytes</div></div><div><br></div><div><div>nginx -V</div><div>nginx: nginx version: nginx/1.0.2</div><div>nginx: TLS SNI support enabled</div><div>nginx: configure arguments: --prefix=/usr --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --with-cc-opt=-I/usr/include --with-ld-opt=-L/usr/lib --http-log-path=/var/log/nginx/access_log --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-scgi-temp-path=/var/tmp/nginx/scgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --with-ipv6 --with-pcre --with-http_gzip_static_module --with-http_realip_module --with-http_ssl_module --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module</div></div><div><br></div><div>and nginx.conf</div><div><br></div><div><div>user nginx nginx;</div><div>worker_processes 2;</div><div>worker_rlimit_nofile 8192;</div><div><br></div><div>error_log /var/log/nginx/error_log info;</div><div>#error_log /var/log/nginx/error_log debug;</div><div>events {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;worker_connections &nbsp;8192;</div><div># &nbsp; &nbsp; &nbsp; worker_connections &nbsp;1024;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;use epoll;</div><div>}</div><div><br></div><div>http {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;include &nbsp; &nbsp; &nbsp; &nbsp; /etc/nginx/mime.types;</div><div># &nbsp; &nbsp; &nbsp; include &nbsp; &nbsp; &nbsp; &nbsp; /etc/nginx/proxy.conf;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;include &nbsp; &nbsp; &nbsp; &nbsp; /etc/nginx/fastcgi_params;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;default_type &nbsp; &nbsp;application/octet-stream;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;log_format main</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'$remote_addr - $remote_user [$time_local] '</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'"$request" $status $bytes_sent '</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'"$http_referer" "$http_user_agent" '</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'"$gzip_ratio"';</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_header_timeout &nbsp; 10;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_body_timeout &nbsp; &nbsp; 10;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;#needed for file uploads &gt; 1m</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_max_body_size &nbsp; &nbsp;10m;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;send_timeout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;connection_pool_size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;256;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;client_header_buffer_size &nbsp; &nbsp; &nbsp; 1k;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;large_client_header_buffers &nbsp; &nbsp; 4 2k;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;request_pool_size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4k;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip on;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip_min_length 1100;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip_buffers &nbsp; &nbsp;16 8k;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip_static &nbsp; &nbsp; on;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gzip_types &nbsp; &nbsp; &nbsp;text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;output_buffers &nbsp;1 32k;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;postpone_output 1460;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;sendfile &nbsp; &nbsp; &nbsp; &nbsp;on;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;tcp_nopush &nbsp; &nbsp; &nbsp;on;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;tcp_nodelay &nbsp; &nbsp; on;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;keepalive_timeout &nbsp; &nbsp; &nbsp; 10 10;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ignore_invalid_headers &nbsp;on;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;index index.html index.php;</div></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;server {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[::]:80 default ipv6only=on;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;80 default;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;server_name &nbsp; &nbsp; <a href="http://example.com">example.com</a> <a href="http://www.example.com">www.example.com</a> <a href="http://ipv6.example.com">ipv6.example.com</a>;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;access_log &nbsp; &nbsp; &nbsp;/var/log/nginx/t<a href="http://example.com">example.com</a>.access_log main;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error_log &nbsp; &nbsp; &nbsp; /var/log/nginx/<a href="http://example.com">example.com</a>.error_log info;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;root /var/www/<a href="http://example.com">example.com</a>/htdocs;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;autoindex on;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location /blog/ {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!-e $request_filename) {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite &nbsp;^.+?(/.*\.php)$ &nbsp;/blog$1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;last;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite &nbsp;^.+?(/wp-.*) &nbsp; &nbsp; /blog$1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;last;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite &nbsp;^ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/blog/index.php &nbsp;last;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location ~ ^.+\.php {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include /etc/nginx/fastcgi_params;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_param SCRIPT_FILENAME /var/www/example.com/htdocs$fastcgi_script_name;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_pass &nbsp; 127.0.0.1:9000;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fastcgi_index &nbsp; index.php;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location ~* ^.+\.(jpg|jpeg|gif|png)$ {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;access_log &nbsp; off;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;expires &nbsp; &nbsp; &nbsp;30d;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location ^~ /c/ {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return 403;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location ^~ /p/ {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return 403;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;include /etc/nginx/vhosts.d/*.conf;</div><div>}</div></div><div><br></div><div>i have turned firewall off to ensure that wasn't an issue. I am not sure were else to look.&nbsp;</div><div><br></div><div>Here is also a debug log</div><div><a href="http://pastie.org/private/dbzwwlkxaelmex47hvwnzq">http://pastie.org/private/dbzwwlkxaelmex47hvwnzq</a></div><div><br></div><div>v/r,</div><div>Rob</div></body></html>