<div dir="ltr">Доброго времени.<br><br>Прошу помощи, т.к. нуб  в nginx(. <br><br>Есть конфиг, сгенерированный панелью ispmanager для работы в режиме nginx+fastcgi.<br>К сожалению с данным конфигом не работает wordpress корректно. Открывается только главная страница, переход по ссылкам приводит к 404 ошибке.<br>

<br>Со страницы <a href="http://wiki.nginx.org/WordPress">http://wiki.nginx.org/WordPress</a> подставлял локейшены и так и сяк, но увы.<br>Вот конфиг:<br><br><br>##################################################################<br clear="all">

<div><span class="" style="color:rgb(136,136,136);font-family:monospace;font-size:12px;line-height:24px;white-space:pre">#user 'wuser' virtual host '<a href="http://domain.ru">domain.ru</a>' configuration file</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:24px;white-space:pre;background-color:rgb(240,240,240)">
server {
        server_name <a href="http://domain.ru">domain.ru</a> <a href="http://www.domain.ru">www.domain.ru</a>;
        charset UTF-8;
        disable_symlinks if_not_owner from=$root_path;
        index index.php index.html index.htm;
        root $root_path;
        set $root_path /var/www/wuser/data/www/<a href="http://domain.ru">domain.ru</a>;
        ssi on;
        access_log /var/www/httpd-logs/domain.ru.access.log ;
        error_log /var/www/httpd-logs/domain.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 /webstat/ {
                charset UTF-8;
                index index.html;
                location ~ [^/]\.ph(p\d*|tml)$ {
                        try_files /does_not_exists @php;
                }
                auth_basic </span><span class="" style="color:rgb(136,0,0);font-family:monospace;font-size:12px;line-height:24px;white-space:pre">"Access limited by ISPmanager"</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:24px;white-space:pre;background-color:rgb(240,240,240)">;
                auth_basic_user_file /var/www/wuser/data/etc/access.domain.ru.VihQs/3k.passwd;
        }
        location @php {
                fastcgi_index index.php;
                fastcgi_param PHP_ADMIN_VALUE </span><span class="" style="color:rgb(136,0,0);font-family:monospace;font-size:12px;line-height:24px;white-space:pre">"sendmail_path = /usr/sbin/sendmail -t -i -f <a href="mailto:webmaster@domain.ru">webmaster@domain.ru</a>"</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:24px;white-space:pre;background-color:rgb(240,240,240)">;
                fastcgi_pass unix:/var/www/php-fpm/wuser.sock;
                fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
                try_files $uri =404;
                include fastcgi_params;
               
        }
        listen <a href="http://000.000.000.00:80">000.000.000.00:80</a>;
}</span><br></div><div>##################################################################<br clear="all"></div><div><br></div>-- <br>Relax, take it easy!
</div>