Quantcast
Channel: drupal.org - Site administrators
Viewing all articles
Browse latest Browse all 426

style don't create the resource when clean URL is enabled with Nginx like inverse proxy

$
0
0

with bitrix enviroment installed like a base webserver, my drupal installation show some issues to create the styles.

After check permissions from filesystem and the configuration of apache they don't show error then check the nginx configuration the problem could be the next couple of lines

with bitrix enviroment
/etc/nginx/bx/conf/bitrix.conf

if you don't have bitrix and just have nginx the config file is in
/etc/nginx/nginx.conf

# Error page for static content
                if ($request_filename ~* \.(css|js|gif|png|jpg|jpeg|ico)$) {
                        error_page 404 /404.html;
                        break;
                }

this lines say "when files (css|js|gif|png|jpg|jpeg|ico) don't exist return a 404 error page". with styles in drupal the resurces are created in the first request before don't exist, that is why nginx block the instruction to create the image and never reach to drupal.

seach in drupal forums can't find any solution to this problem, this work's for me and hope it will help.


Viewing all articles
Browse latest Browse all 426

Trending Articles