location ~ ^.*/files\/styles\/.*$ {
        access_log off;
        expires 45d;
        error_page 404 @drupal;
}

location @drupal {
        if (!-e $request_filename) {
        rewrite ^/(.*)$ /index.php?q=$1 last;
        }
}
# Drupal Rewrite
location / {
        root /path/to/drupal;
        index index.php index.html;
        if (!-e $request_filename) {
                rewrite ^(.*)$ /index.php?q=$1 last;
        }
}

 

相关文章:

  • 2021-06-30
  • 2022-12-23
  • 2021-12-21
  • 2021-04-15
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案