Drupal 7 does not generate styles using clean urls on Ubuntu 16.04 NGINX/PHP-FPM
Posted: Wed Apr 05, 2017 10:59 am
I cannot get it to work, i have a fresh Vesta installation on Ubuntu 16.04 and NGINX + php-fpm web server.
Created a web with nginx template "drupal 7" and backend template "default".
Install a fresh Drupal 7, add an article with an image and view the recently created article. The browser returns error 404 not found image. Drupal does not log any errors nor does nginx logs.
I've tried to change folder permissions and the problem persists.
I've tried to change nginx.conf
from
to
reload the configuration and restarted the server and the problem persist.
Edited:
Drupal 7 without Clean URL works and I can confirm that has nothing to do with folder permissions.
Anyone has the same issue?
Created a web with nginx template "drupal 7" and backend template "default".
Install a fresh Drupal 7, add an article with an image and view the recently created article. The browser returns error 404 not found image. Drupal does not log any errors nor does nginx logs.
I've tried to change folder permissions and the problem persists.
I've tried to change nginx.conf
from
Code: Select all
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
Code: Select all
location ~* /sites/.*/files/styles/ {
access_log off;
expires 30d;
try_files $uri @rewrite;
}
Edited:
Drupal 7 without Clean URL works and I can confirm that has nothing to do with folder permissions.
Anyone has the same issue?