• Apologies for what I’m sure is a somewhat common thread in the forums but after days of digging and pouring over all the documentation here and elsewhere I’m hoping for a lifeline from someone. I’ve got a multisite setup (subdirectories) using Nginx and the images currently are showing 404 on all but the main site. In looking at the logs this is the error I’m seeing due to rewrite rules not working properly:

    2015/07/15 18:14:12 [error] 7600#0: *1 open() "/var/www/wordpress/lansingstar/files/2015/05/20140908_124852_RichtoneHDR.jpg" failed (2: No such file or directory), client: 127.0.0.1, server: news.jrn.msu.edu, request: "GET /lansingstar/files/2015/05/20140908_124852_RichtoneHDR.jpg HTTP/1.1", host: "news.jrn.msu.edu"

    That image is at https://news.jrn.msu.edu/lansingstar/files/2015/05/20140908_124852_RichtoneHDR.jpg

    I have the map file generated properly and included. I’ve tried a host of different configurations to get it to rewrite the URL but it still always wants to serve it directly from the root path as a folder named after the blogname instead of wp-content/blogs.dir/$blogid/files as it needs to be. Here are some links to the current config:

    sites-available/wordpress

    global/restrictions.conf

    global/wordpress.conf

    Anyone well-versed in nginx see what I must be missing?

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Nginx subdirectory images broken’ is closed to new replies.