[образец] drupal nginx rewrite правила
    Dmitry 
    rapaman at virthost.net
       
    Thu Jan 17 14:02:35 MSK 2008
    
    
  
Добрый день,
Образец реврайтов для drupal:
----------------------------
         location / {
             root   /path/to/drupal/install/doc/root;
             index  index.php index.html;
             if (!-f $request_filename) {
                 rewrite  ^(.*)$  /index.php?q=$1  last;
                 break;
             }
             if (!-d $request_filename) {
                 rewrite  ^(.*)$  /index.php?q=$1  last;
                 break;
             }
         }
картинки и т.п. - как обычно, через regexp location
--------------
С Уважением,
Дмитрий.
-- 
Информационный портал о вэб-сервере nginx - http://www.nginx.info
Удаленное администрирование серверов - http://www.ras.su
    
    
More information about the nginx-ru
mailing list