Welcome! Log In Create A New Profile

Advanced

Issue with multiple location

Posted by axeloz 
Issue with multiple location
April 21, 2015 02:52PM
Hello guys,

I have a problem I want to fix. My server configuration is attached to this post.

I have a server block with includes my main website powered by the Kohana framework.
I have also a Wordpress blog which is under /blog/. All other URLs are going to the main website.

This is working fine.

My problem is with the
location ~* \.css|\.js$|\.jpg|\.jpeg|\.png|\.gif|\.swf|\.svg|\.tiff|\.pdf|\.ico {}

When I enable this, static resources from my blog aren't working anymore. I get 404 errors. I understand why but how can I fix this?

Thanks

Axel
Attachments:
open | download - nginx.txt (1.9 KB)
Re: Issue with multiple location
April 21, 2015 02:55PM
I found an easy option: I duplicated the location block into my Kohana and into my blog locations.
It seems to work
Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready