wordpress + nginx

XIT xolodit at gmail.com
Thu May 22 10:07:03 UTC 2014


Доброго времени.

Прошу помощи, т.к. нуб  в nginx(.

Есть конфиг, сгенерированный панелью ispmanager для работы в режиме
nginx+fastcgi.
К сожалению с данным конфигом не работает wordpress корректно. Открывается
только главная страница, переход по ссылкам приводит к 404 ошибке.

Со страницы http://wiki.nginx.org/WordPress подставлял локейшены и так и
сяк, но увы.
Вот конфиг:


##################################################################
#user 'wuser' virtual host 'domain.ru' configuration file server {
server_name domain.ru www.domain.ru; 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/domain.ru; 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 "Access limited by ISPmanager";
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 "sendmail_path =
/usr/sbin/sendmail -t -i -f webmaster at domain.ru"; 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 000.000.000.00:80; }
##################################################################

-- 
Relax, take it easy!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20140522/5378617c/attachment.html>


Подробная информация о списке рассылки nginx-ru