Drupal path problem with nginx/1.9.5

Events happening in the community are now at Drupal community events on www.drupal.org.
Nikdhil Mdohfan's picture

I am trying to install drupal on nginx 1.9.5
here is my default.conf http://pastebin.com/4hTBnSJf

When i set up my css/js paths are missing see att.

its like

@import url("http://192.168.52.211/modules/system/system.base.css?0");
@import url("http://192.168.52.211/modules/system/system.admin.css?0");
@import url("http://192.168.52.211/modules/system/system.menus.css?0");
@import url("http://192.168.52.211/modules/system/system.messages.css?0");
@import url("http://192.168.52.211/modules/system/system.theme.css?0");
@import url("http://192.168.52.211/modules/system/system.maintenance.css?0");

How can i get this working?

I am getting a 404 when i see this http://192.168.52.211/modules/system/system.base.css

AttachmentSize
Screen Shot 2015-10-05 at 9.37.04 AM.png54.08 KB

Comments

Fixed

Nikdhil Mdohfan's picture

I had to replace the

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
< code >
block to

root /var/www/html/mysite;
index index.php index.html index.htm
location / {
try_files $uri @rewrite;
}

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: