﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
200	typo in a freshly installed sites-enabled/default	lukasz skrzeszewski	somebody	"I have installed stable version from ppa

add-apt-repository ppa:nginx/stable
apt-get -y update
apt-get -y install nginx
service nginx start

when I visited localhost:80 I got:
  500 Internal Server Error

line from /var/log/nginx/error.log:
2012/08/20 12:30:48 [error] 2151#0: *1 rewrite or internal redirection cycle while internally redirecting to ""/index.html"", client: 10.0.2.2, server: localhost, request: ""GET / HTTP/1.1"", host: ""localhost:80""

server block from sites-enabled/default(comments removed)

server{
  root /usr/share/nginx/www;
  index index.html index.htm;

  server_name localhost;

  location / {
    try_files $uri $uri/ /index.html
  }

  location /doc/ {
    alias /usr/share/doc/;
    autoindex on;
    allow 127.0.0.1;
    allow ::1;
    deny all;
  }
}


but on my system index.html was installed to /usr/share/nginx/'''html'''/index.html

to fix this I had to change root directive in a server block to 
 
  root /usr/share/nginx/html;

ty kocur4d.
"	defect	closed	trivial		nginx-package	1.2.x	invalid			Linux natty 2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC 2011 i686 i686 i386 GNU/Linux	"nginx version: nginx/1.2.3
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-pcre-jit --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.2.3/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.2.3/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.2.3/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.2.3/debian/modules/nginx-dav-ext-module"
