Drupal Clean URL 在迁移后不起作用 (nginx)



服务器是Debian 7。

LEMP (nginx1.8 php5.6)

http://82.146.60.88/drupal.dev/

帮忙吗?

我的nginx drupal.conf

我已经尝试重写^/(.*)$/index.php?q=$1;在位置@重写部分,但没有为我工作( )
server 
{
server_name drupal.dev; 
root /usr/share/nginx/html/drupal.dev;
gzip_static on;
location = /favicon.ico {
        log_not_found off;
        access_log off;
}
location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
}
location ~* .(txt|log)$ {
        allow 192.168.0.0/16;
        deny all;
}
location ~ ..*/.*.php$ {
        return 403;
}
location ~ ^/sites/.*/private/ {
        return 403;
}
location ~ (^|/). {
        return 403;
}
location / {
        # This is cool because no php is touched for static content
        try_files $uri @rewrite;
}
location @rewrite {
        rewrite ^ /index.php;
}
location ~ .php$ {
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $request_filename;
        fastcgi_intercept_errors on;
        fastcgi_pass 127.0.0.1:9000;
}
location ~ ^/sites/.*/files/styles/ {
        try_files $uri @rewrite;
}
location ~* .(js|css|png|jpg|jpeg|gif|ico)$ {
        expires max;
        log_not_found off;
}
  }                  

看起来它正在工作。网站是http://82.146.60.88不需要/drupal.dev路径

最新更新