26 messages in ru.sysoev.nginxRe: how to rewrite this: apache to nginx
FromSent OnAttachments
Robert GabrielAug 29, 2008 1:54 am 
Igor SysoevAug 29, 2008 2:00 am 
Robert GabrielAug 29, 2008 2:12 am 
Igor SysoevAug 29, 2008 2:16 am 
Robert GabrielAug 29, 2008 2:27 am 
Igor SysoevAug 29, 2008 2:31 am 
Robert GabrielAug 29, 2008 2:41 am 
Igor SysoevAug 29, 2008 2:59 am 
Robert GabrielAug 29, 2008 3:45 am 
Igor SysoevAug 29, 2008 3:59 am 
Robert GabrielAug 29, 2008 4:10 am 
Igor SysoevAug 29, 2008 4:29 am 
Robert GabrielAug 29, 2008 4:45 am 
Sergej KandylaAug 29, 2008 4:55 am 
Igor SysoevAug 29, 2008 5:01 am 
Robert GabrielAug 29, 2008 5:06 am 
Robert GabrielAug 29, 2008 5:16 am 
Robert GabrielAug 29, 2008 5:18 am 
Igor SysoevAug 29, 2008 6:25 am 
Robert GabrielAug 29, 2008 7:18 am 
Igor SysoevAug 29, 2008 7:24 am 
Robert GabrielAug 29, 2008 12:39 pm 
Robert GabrielSep 1, 2008 12:59 am 
Igor ClarkSep 1, 2008 2:09 am 
Robert GabrielSep 1, 2008 9:35 am 
Robert GabrielSep 5, 2008 2:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: how to rewrite this: apache to nginxActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Aug 29, 2008 2:16:35 am
List:ru.sysoev.nginx

On Fri, Aug 29, 2008 at 11:13:20AM +0200, Robert Gabriel wrote:

But what about this?

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L]

location / { error_page 404 = /index.php; }

Igor Sysoev wrote:

On Fri, Aug 29, 2008 at 10:54:38AM +0200, Robert Gabriel wrote:

RewriteRule ^(.*/)?libs(/|$) - [F,L] RewriteRule ^(.*/)?plugins(/|$) - [F,L] RewriteRule ^(.*/)?storage(/|$) - [F,L] RewriteRule ^(.*/)?templates(/|$) - [F,L]

to nginx?!

server {

root ...

location / { error_page 404 = /index.php; }

location ~* \.php$ { ... }

location ~* ^(.*/)?(\.svn|api|libs|plugins|storage|templates)(/|$) { return 403; }