Want to subscribe to topics you're interested in?
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:
    6:02 AM
    would it be possible to rewrite missing images to a 404 image without changing the url?

     
  2. eva2000

    eva2000 Administrator Staff Member

    52,186
    11,998
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,501
    Local Time:
    3:02 PM
    Nginx 1.25.x
    MariaDB 10.x
  3. Tythus

    Tythus Member

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

    Tythus Member

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

    eva2000 Administrator Staff Member

    52,186
    11,998
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,501
    Local Time:
    3:02 PM
    Nginx 1.25.x
    MariaDB 10.x
    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:
    6:02 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

    52,186
    11,998
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,501
    Local Time:
    3:02 PM
    Nginx 1.25.x
    MariaDB 10.x
    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:
    6:02 AM
    that's a cloudflare thing try again by just pasting the link into your address bar
     
  9. eva2000

    eva2000 Administrator Staff Member

    52,186
    11,998
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,501
    Local Time:
    3:02 PM
    Nginx 1.25.x
    MariaDB 10.x
    ah pasting in browser seens the gif image :)