ȯ·é—®è¿™ä¸ªè§„则如何转换

RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

如何转换成nginx的rewrite规则

谢谢大家

杨廷勇 wrote:

RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

如何转换成nginx的rewrite规则

谢谢大家
这里懂中文的很少,还是用英文提问吧

These are rewrite rules for apache:

RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

How to change these rules for nginx?

On Thu, Mar 05, 2009 at 01:38:45PM +0800, Weibin Y. wrote:

These are rewrite rules for apache:

RewriteBase /
RewriteCond %{REQUEST_URI} !.(gif|jpeg|png|jpg|bmp)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

How to change these rules for nginx?

If you use FastCGI and nginx 0.7.x:

location / {
try_files $uri $uri/ @php;
}

location ~ .(gif|jpe?g|png|bmp)$ {
}

location @php {
fastcgi_pass …;

fastcgi_param  SCRIPT_FILENAME  /path/to/index.php;

... other fastcgi_param

}

我英文水平有限,谁能帮我译一下,谢谢

在2009-03-05,"Big Bet" [email protected] 写道:

Hello 杨廷勇,

Thursday, March 5, 2009, 9:55:01 AM, you wrote:

我英文水平有限,谁能帮我译一下,谢谢

ما الذي تتحدث عنه؟

在2009-03-05,"Big燘et"?lt;[email protected]>犘吹溃?>杨廷勇爓rote:

燫ewriteBase?
燫ewriteCond?{REQUEST_URI}牋牋!.(gif|jpeg|png|jpg|bmp)$
燫ewriteCond?{REQUEST_FILENAME}?-f
燫ewriteCond?{REQUEST_FILENAME}?-d
燫ewriteRule?爄ndex.php燵L]
?>>犎绾巫怀蒼ginx的rewrite规则
?>>çŠ˜ææ·®è ¹?>这里懂中文的很少,还是用英文提问吧
–?>Posted爒ia爃ttp://www.ruby-forum.com/.

Hi 杨廷勇,

Try this.

http://translate.google.com/translate_t#

Terence

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs