ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MODx setup


  • To: nginx-ru@xxxxxxxxx
  • Subject: MODx setup
  • From: "Haikson" <nginx-forum@xxxxxxxx>
  • Date: Sat, 12 Oct 2013 07:37:38 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=3w4ilB5TVZGYMyIuaMWqjCXYP5vaarVkKiZa2tjgrcw=; b=FXQwapTSnS4H7iwhBnuffHt2XFMxW3flGIfMSNuc/4OfLTv3OO4/fCjyYOyelS0mn1zPz3lJwdpKW1oJBBAqlUoskW+OcMCOmZrL88k0nQFGOPj9w90J6YR0pFxwE+b5Fg0C4Vfcx+80oYrPncLiKtNPU+hKlxfmmPWA0NJUsHM=;

Нужна помощь в понимании как действовать. Пытаюсь установить 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 mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.