0

I have this location directive:

    location ~* ^/(_nuxt|_libs|_img|_fonts)/(.*) {
        alias /srv/nuxt/tools/dist/$1;
        try_files /$2 =404;
    }

This matches and serves successfully: /_img/logo.png

but not: /_libs/AryaBootstrap/css/bootstrap.min.css (returns 404).

Any idea what is going wrong here?

2
  • 1
    Try: root /srv/nuxt/tools/dist; try_files $uri =404; May 16, 2019 at 6:19
  • Thanks @RichardSmith. The issue was caused by another directive targeting css files. I don't understand why that would interfere, since the above block is located above the interfering one in the configuration file.
    – W.M.
    May 16, 2019 at 6:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.