Join the community today
Become a Member

Nginx Rewrite for missing images

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

  1. Tythus

    Tythus Premium Member Premium Member

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

    eva2000 Administrator Staff Member

    30,132
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    12:10 PM
    Nginx 1.13.x
    MariaDB 5.5
  3. Tythus

    Tythus Premium Member Premium Member

    56
    9
    8
    Aug 6, 2014
    Ratings:
    +12
    Local Time:
    3:10 AM
  4. Tythus

    Tythus Premium Member Premium Member

    56
    9
    8
    Aug 6, 2014
    Ratings:
    +12
    Local Time:
    3:10 AM
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,132
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    12:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    nice but that url gives me a cloudflare 1101 access denied error message page not gif image ?
     
  6. Tythus

    Tythus Premium Member Premium Member

    56
    9
    8
    Aug 6, 2014
    Ratings:
    +12
    Local Time:
    3:10 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

    30,132
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    12:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    this is what i see

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

    Tythus Premium Member Premium Member

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

    eva2000 Administrator Staff Member

    30,132
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    12:10 PM
    Nginx 1.13.x
    MariaDB 5.5
    ah pasting in browser seens the gif image :)