Nginx: different content to specific request method

Hey Guys,

I have the image in the url (my server):
http://www.example.com/example.jpg

If my user put this image url on his site: return the image (normal).

If my user put this image url on his browser: return redirect to my
site, i.e. http://www.example.com/?fimage=example.jpg

How to do it?

Regards,
Caio

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,217215,217215#msg-217215

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs