nginx下配置drupal7 clear url
1,settings.php结尾加$conf['clean_url']=1;? 被这个东西害死了。。。。
2,nginx.conf配置
server
??????? {
??????????????? listen?????? 80;
??????????????? server_name www.test-1.com;
??????????????? index index.html index.htm index.php;
??????????????? root? /home/wwwroot/drupal;
??????????????? location ~ .*\.(php|php5)?$
??????????????????????? {
??????????????????????????????? try_files $uri =404;
??????????????????????????????? fastcgi_pass? unix:/tmp/php-cgi.sock;
??????????????????????????????? fastcgi_index index.php;
??????????????????????????????? include fcgi.conf;
??????????????????????? }
??????????????? if (!-e $request_filename) {
??????????????????????? rewrite? ^/(.*)$?? /index.php?q=$1? last;
??????????????????????? break;
??????????????? }
??????????????? location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
??????????????????????? {
??????????????????????????????? expires????? 30d;
??????????????????????? }
??????????????? location ~ .*\.(js|css)?$
??????????????????????? {
??????????????????????????????? expires????? 12h;
??????????????????????? }
??????????????? access_log? off;
??????? }
}