index index.html index.php & Internal server error.

Владислав Комиссаров vk at shiloff.ru
Sun Aug 17 14:06:04 MSD 2008


Приветствую.

Есть такой конфиг

server {
  listen         80;
  server_name    site.ru www.site.ru;
  set $srv_root  /var/www/site.ru/htdocs;

  access_log   /var/log/nginx/site_access.log main;
  error_log    /var/log/nginx/error_log;

  root $srv_root;
  index index.html index.php;

  location ~* \.php$ {
    include /etc/nginx/www/include/fastcgi_params.conf;
  }
}

В случае, если index.html отсутствует - nginx выдает Internal Server Error и
на index.php не переходит.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080817/c66be531/attachment.html>


More information about the nginx-ru mailing list