Welcome to Centmin Mod Community
Become a Member

Nginx Rewrite for missing images

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Tythus, Aug 13, 2014.

  1. Tythus

    Tythus Member

    61
    9
    8
    Aug 6, 2014
    Ratings:
    +12
    Local Time:
    2:58 AM
    would it be possible to rewrite missing images to a 404 image without changing the url?

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:58 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. Tythus

    Tythus Member

    61
    9
    8
    Aug 6, 2014
    Ratings:
    +12
    Local Time:
    2:58 AM
  4. Tythus

    Tythus Member

    61
    9
    8
    Aug 6, 2014
    Ratings:
    +12
    Local Time:
    2:58 AM
  5. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:58 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nice but that url gives me a cloudflare 1101 access denied error message page not gif image ?
     
  6. Tythus

    Tythus Member

    61
    9
    8
    Aug 6, 2014
    Ratings:
    +12
    Local Time:
    2:58 AM
    huh that's odd seems to be fine for me?

    oh if you click on the link it won't let you see it but if you type it in it's fine

    that's odd
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:58 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    this is what i see

    upload_2014-8-13_13-36-10.png
     
  8. Tythus

    Tythus Member

    61
    9
    8
    Aug 6, 2014
    Ratings:
    +12
    Local Time:
    2:58 AM
    that's a cloudflare thing try again by just pasting the link into your address bar
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    11:58 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah pasting in browser seens the gif image :)