ПРОЕКТЫ 


  АРХИВ 


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]

Покритикуйте конфиг


  • To: nginx-ru@xxxxxxxxx
  • Subject: Покритикуйте конфиг
  • From: greenh <greenh@xxxxxxxxx>
  • Date: Tue, 18 Feb 2014 14:12:10 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=iEhc5Wea0wSLR2WJjyzkxFRNqRmcEF/r6Chqw7Fv3rY=; b=f8AFvvFOnzbVK/SH/a6d4qmXCnqjAoqhUqnjMPF61PKqRoZpEP99q78V+oW0WlZ1os UygN9LUEOaW4iQ3Zs/Y65luASpD83bWcdwg4g2erxPVz4uvz5DGGePlhEKP/+HlQE0ue 4aP15ko+CI7o7n8an3oS+tdnD7dvm2Dc0jfi6XaWAL9VDiCGpqB/IZciIAwBC0hZbyxn Jq/WV+tBoE3IFeBGkCWCUuU+aNxu87B8N+2ldhXlxaXzSUFsRXI9VootLnWWtRlorI62 GyaqqGKKzJkkyO3rjVB6TZ8p8fOrLTob0fJuLQ3OC0GdUvzh0S7n3na+jMTorejg5Z8q /cnw==

Добрый день
Господа, подскажите плз, этот конфиг сильно кривой, или я двигаюсь в правильном направлении?
server {
listen *:80;
root /home/client/gametest.mydomain.com/htdocs;
index  index.php;

location /img {
    try_files $uri $uri @img_fallback;

}

location @img_fallback {
        fastcgi_pass 127.0.0.1:9001;
        fastcgi_index index.php;
        fastcgi_param   PHPRC "/home/client/php";
        fastcgi_param SCRIPT_FILENAME /home/client/gametest.mydomain.com/htdocs/img/index.php;
        include fastcgi_params;
}

location /editor {
    try_files $uri $uri @editor_fallback;

}

location @editor_fallback {
        fastcgi_pass 127.0.0.1:9001;
        fastcgi_index index.php;
        fastcgi_param   PHPRC "/home/client/php";
        fastcgi_param SCRIPT_FILENAME /home/client/gametest.mydomain.com/htdocs/editor/index.php;
        include fastcgi_params;
}


location /game {
    try_files $uri $uri @game_fallback;

}
location @game_fallback {
    rewrite /game/([0-9]+\.html)$ /game/index.php?id=$1;

        fastcgi_pass 127.0.0.1:9001;
        fastcgi_index index.php;
        fastcgi_param   PHPRC "/home/client/php";
        fastcgi_param SCRIPT_FILENAME /home/client/gametest.mydomain.com/htdocs/game/index.php;
        include fastcgi_params;
}


location ~ .php$ {
        fastcgi_pass 127.0.0.1:9001;
        fastcgi_index index.php;
        fastcgi_param   PHPRC "/home/client/php";
        fastcgi_param SCRIPT_FILENAME /home/client/gametest.mydomain.com/htdocs$fastcgi_script_name;
        include fastcgi_params;
}

error_log /home/client/logs/gametest.mydomain.com-error.log;
access_log /home/client/logs/gametest.mydomain.com-access.log;

}

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.