K
K
KaMaToZzz2015-02-12 23:10:31
FastCGI
KaMaToZzz, 2015-02-12 23:10:31

Fastcgi add /index.html?

Hello,
I am using the nginx-apache bundle in the ispmanager panel. When I turn on FastCGI, I get this error. FastCGI seems to add /index.html somewhere - but I can't find where
[error] 16285#0: *907 "/var/www/siteman/data/www/site.ru/2012/07/30/some- topic /index.html " is not found (2: No such file or directory), client: 66.24.72.45, server: site.ru, request: "GET /2012/07/30/some-topic/ HTTP/1.1" , host: "site.ru"

server {
        server_name site.ru www.site.ru;
        charset UTF-8;
        disable_symlinks if_not_owner from=$root_path;
        index index.html index.php;
        root $root_path;
        set $root_path /var/www/siteman/data/www/site.ru;
        ssi on;
        access_log /var/www/httpd-logs/site.ru.access.log ;
        error_log /var/www/httpd-logs/site.ru.error.log notice;
        include /etc/nginx/vhosts-includes/*.conf;
        location / {
                location ~ [^/]\.ph(p\d*|tml)$ {
                        try_files /does_not_exists @php;
                }
        }
        location @fallback {
                error_log /dev/null crit;
                access_log off ;
        }
        location @php {
                fastcgi_index index.php;
                fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]";
                fastcgi_pass unix:/var/www/php-fpm/siteman.sock;
                fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
                try_files $uri =404;
                include fastcgi_params;
        }
        listen 18.55.22.22:80;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2015-02-13
@Arik

nginx.org/ru/docs/http/ngx_http_index_module.html
If I understand correctly:
There is an internal redirect
site.ru/2012/07/30/some-topic/ -> site.ru/2012/07/30/some-topic/index.html
and location ~ [^/]\.ph (p\d*|tml)$
is no longer valid for the current request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question