MODx setup

Haikson nginx-forum at nginx.us
Sat Oct 12 11:37:38 UTC 2013


Нужна помощь в понимании как действовать. Пытаюсь установить MODx Revo
Вот настройки nginx.
server {
    listen      80;
    server_name xn----7sbitcnbnlgdqs1b8l.xn--p1ai;
    charset     utf8;
    autoindex   off;
    access_log  /srv/logs/poly_access.log;
    error_log   /srv/logs/poly_error.log error;
    root        /srv/www/haikson/poly;
    index index.php;
    rewrite_log         on;

    location /core/ {
        deny all;    
    }

    location / {
        try_files $uri $uri/ @modx;
    }

    location @modx {
        rewrite         ^/(.*)$ /index.php?q=$1;
    }

    location ~* "/\.ht" {
        deny all;   # запретить все для всех
        return 404; # вернуть код ошибки 404
    }

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }
    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    location ~* \.(jpg|jpeg|gif|css|png|js|ico|bmp)$ {
        access_log       off;
        expires 30d;
        break;
    }

    location ~ .php$ {
        try_files $fastcgi_script_name =404;
        fastcgi_split_path_info ^(.+\.php)(.*)$;
        fastcgi_pass                       
unix:/var/run/php-fpm/phpfpm.socket;
        fastcgi_index                       index.php;
        fastcgi_param   SCRIPT_FILENAME    
$document_root$fastcgi_script_name;
        fastcgi_param   PATH_TRANSLATED    
$document_root$fastcgi_script_name;
        fastcgi_param   PATH_INFO           $fastcgi_path_info;
        fastcgi_param   PHP_VALUE           "apc.cache_by_default=0";
        include                             fastcgi_params;
    }
}

Открываю /setup/ - всё нормально
Пытаюсь перейти на сл. уровень (/setup/?action=welcome ) перебрасывает на
/?action=welcome

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,243636,243636#msg-243636



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