Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Issue with multiple location

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>