2012-12-08 36 views

回答

1

無法在我的服務器上測試它,但它必須或多或少與您的站點conf中的這些代碼等同於nginx。不要忘記在更改配置後重新啓動nginx。

Location /thumb/ { 
    rewrite ^/thumb/(\d+)/(\d+)/(.*)\..*$ /timthumb.php/?s=$3&h=$2&w=$1 last; 
} 
+0

,使其工作,我已經改變我的nginx的conf文件: 位置〜*^/拇指/([0-9] +)/([0-9] +)/(。 *)$ { rewrite ^/thumb /(\ d +)/(\ d +)/(。*)$ /timthumb.php?src=http://$host/$3&zc=1&w=$1&h=$2 last; } Anwyay ...非常感謝你的提示!它節省了我的一天......;) –