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]

Re: MODx setup



http://nginx.org/en/docs/http/ngx_http_index_module.html#index .  
   ,  -  
/setup/index.php?action=welcome

12.10.2013, 15:37, "Haikson" <nginx-forum@xxxxxxxx>:
>      .   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

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


 




Copyright © Lexa Software, 1996-2009.