ПРОЕКТЫ 


  АРХИВ 


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: Наборы ре врайтов д ля популя рного ПО (CMS, fo rum,...)


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Наборы ре врайтов д ля популя рного ПО (CMS, fo rum,...)
  • From: "Alexey V. Karagodov" <karagodov@xxxxxxxxx>
  • Date: Thu, 17 Jan 2008 10:32:39 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:from; bh=lS8vDa407dN3D+i0phBGHlMxZNLnck51ycHutc2xUjA=; b=l9eUoVJ8hrzG9zsHLDrkAx8Brh7Q7PGytWiMTD3sjdWPrWtI7Ax16j58e6vF6Jcbl1xXG0d4k2TK7MwG4TMdubVAT9CP0DW5vx0UsHaZBnyLAH6aMXhwxuJ35cnqy7w2clidoGFafq4qygsCdRoY4JVC2+zG8OyxxOgJh7KuxIg=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:from; b=tXiUTQ9+xRdFjTNBOAOD8JBY5Rs4KL6YVdCEYxJdFqNzrX1GqlO+2uIDhOyYyXFP8oVwhuQbYqnmhq9mKCu4owjzULgB6oM1GydPAbijkiuakUmBpmVCOkxqR+jxfosG8oahnYpVtBO8WBzZWN10A6jQ2Mavb4OyEbAZdkWNylM=
  • In-reply-to: <478F04BC.7000003@xxxxxxxxxxxx>
  • References: <20080117090841.6dbe8d40@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <478F04BC.7000003@xxxxxxxxxxxx>

сорри, а для Bitrix-а есть подобное?

On 17.01.2008, at 10:33, Dmitry wrote:


Добрый день,

Для DLE написать легко можно, под Gallery2 ниже:
------------------------
       location /v/ {
rewrite ^/v/(.*)$ /wp-gallery2.php? g2_view=core.ShowItem&g2_path=$1;
       }
       location /d/ {
# rewrite ^/d/([0-9]{1,20})-([0-9]{1,20})/(.*)$ /gallery2/ index.php?g2_view=core.DownloadItem&g2_itemId=$1&g2_serialNumber= $2&g2_fileName=$3; rewrite ^/d/([0-9]+)-([0-9]+)/(.*)$ /gallery2/index.php? g2_view=core.DownloadItem&g2_itemId=$1&g2_serialNumber= $2&g2_fileName=$3;
       }

       location /rss/ {
rewrite ^/rss/(.*)$ /wp-gallery2.php? g2_view=rss.Render&g2_name=$1;
       }
       location /srss/ {
rewrite ^/srss/(.*)$ /wp-gallery2.php? g2_view=rss.Render&g2_name=$1;
       }
       location /c/add/ {
rewrite ^([0-9]+).html(.*)$ /wp-gallery2.php? g2_view=comment.AddComment&g2_itemId=$1;
       }

       location /c/view/ {
rewrite ^/c/view/([0-9]+).html(.*)$ /wp-gallery2.php? g2_view=comment.ShowAllComments&g2_itemId=$1;
       }

       location /admin/ {
rewrite ^/admin/(.*)$ /wp-gallery2.php? g2_view=core.SiteAdmin;
       }
       location /gallery2/ {
           root /var/www/brainstorm/htdocs/;
           index  index.php index.html index.htm;
           location ~ /.ht {
               deny  all;
           }
           location /gallery2/images/{
                 root /var/www/brainstorm/htdocs/;
           }
           location /gallery2/core/ {
               root /var/www/brainstorm/htdocs/;
           }
           location /gallery2/modules/ {
               root /var/www/brainstorm/htdocs/;
           }
rewrite ^/gallery2/v/(.*)$ /gallery2/index.php? g2_view=core.ShowItem&g2_path=$1; rewrite ^/gallery2/d/([0-9]+)-([0-9]+)/(.*)$ /gallery2/ index.php?g2_view=core.DownloadItem&g2_itemId=$1&g2_serialNumber= $2&g2_fileName=$3; rewrite ^/gallery2/rss/(.*)$ /gallery2/index.php? g2_view=rss.Render&g2_name=$1; rewrite ^/gallery2/srss/(.*)$ /gallery2/index.php? g2_view=rss.SimpleRender&g2_itemId=$1; rewrite ^/gallery2/c/add/([0-9]+).html(.*)$ /gallery2/ index.php?g2_view=comment.AddComment&g2_itemId=$1; rewrite ^/gallery2/c/view/([0-9]+).html(.*)$ /gallery2/ index.php?g2_view=comment.ShowAllComments&g2_itemId=$1; rewrite ^/gallery2/admin/(.*)$ /gallery2/index.php? g2_view=core.SiteAdmin; rewrite ^/gallery2/sitemap(.*)$ /gallery2/index.php? g2_view=sitemap.Sitemap;
       }
       location / {
           root   /var/www/brainstorm/htdocs;
           index  index.php index.html index.htm;
           #wordpress bullshit
           if (!-e $request_filename ) {
                   rewrite ^(.*)$  /index.php;
           }
rewrite ^/sitemap(.*)$ /wp-gallery2.php? g2_view=sitemap.Sitemap;
       }
-----------
С Уважением,
Дмитрий.

--
Информационный портал о вэб-сервере nginx - http://www.nginx.info Удаленное администрирование серверов - http://www.ras.su

Yury Yakubovsky пишет:
Здравствуйте.
Есть где то набор реврайтов переписанных с хтассеса под нгинкс для популярного ПО? Ну например Gallery2 или DLE







 




Copyright © Lexa Software, 1996-2009.