The MU forums have moved to WordPress.org

Nginx rewrite for static content for Wordpress MU with subfolders (6 posts)

  1. milordk
    Member
    Posted 15 years ago #

    Hi!

    Prompt please how to prescribe location ~* \.(png|jpg|gif)$ {} for return statics, provided that the domains are created subfolders

    Offered in Internet options do not work and most of them are designed for subdomains

    If it can be an example of a working config:)

    p.s. If it is important: the main blog is on the way http://domain.ltd/club/

    Alex

  2. milordk
    Member
    Posted 15 years ago #

    The problem is that the appeal to the files is given a folder of the domain for example: htop://domain.ltd/club/Phils/blogs.dir/x/yyy.png

    In the web server logs (Nginx) error message 404

    Used ligament Nginx + Apache, actually want to keep static processing Nginx'th

  3. milordk
    Member
    Posted 15 years ago #

    No one has used such a bunch? ..

  4. tdjcbe
    Member
    Posted 15 years ago #

    Give us a chance to respond? :)

    This is what we use:

    http://premium.wpmudev.org/forums/topic/nginx-rewrite-rules-with-wpmu-wp-super-cache-bbpress-and-sitemaps

    I don;t see mention of the image files. I;ve got screaming kids in my ears so I may just be missing them.

  5. milordk
    Member
    Posted 15 years ago #

    Not work for subfolders :(

    blogs.php?$file=$1 return domain.ltd/folder-name/files/.. ! need: domain.ltd/blog.dir/1/files/

  6. milordk
    Member
    Posted 15 years ago #

    :(

About this Topic