perusio / drupal-with-nginx

Running Drupal using nginx: an idiosyncratically crafted bleeding edge configuration.
854 stars 246 forks source link

Hi, how the clean_url working with this #210

Open nathan-zhu opened 9 years ago

nathan-zhu commented 9 years ago

i try to add below in drupal.conf try_files $uri $uri/ @drupal;

then add below at location @drupal; rewrite ^/(.*)$ /index.php?q=$1;

but not working well, can help on it?

mralexho commented 7 years ago

@nathan-zhu try adding this snippet above the return 404 block

## Clean URLs
location = /index.php {
    include apps/drupal/fastcgi_drupal.conf;
    fastcgi_pass drupal_backend;
}