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: Nginx rewrite for Maxsite CMS



      
   maxsite cms :)
[code]
server {
        listen 80;
        server_name site.ru;
        location ~ \.php {
         fastcgi_pass  unix:/tmp/php-fpm.sock;
         fastcgi_index index.php;
         include fastcgi_params;
         fastcgi_param SCRIPT_FILENAME
/path/to/maxsite$fastcgi_script_name;
         fastcgi_param PATH_INFO $fastcgi_script_name;
         access_log off;
      }

      location / {
        root /path/to/maxsite;
         index  index.php;

        if (-f $request_filename) {
            expires max;
            break;
        }

         if (!-e $request_filename){
            rewrite (.*) /index.php/$1;
         }
      }

}
[/code]
  ;)

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


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


 




Copyright © Lexa Software, 1996-2009.