Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Suppose request hits my web app like this:


By using Nginx's empty_gif module, I am doing something like:

location /empty.gif { expires -1; post_action /empty_gif_post;
empty_gif; }

location = /empty_gif_post { internal; proxy_pass http://mywebapp/_track.php; }

The problem with this approach is that it won't let me retrieve GET parameters.

Any solution for this issue?

share|improve this question

1 Answer 1

proxy_pass foo.php$is_args$args

share|improve this answer
location = /empty_gif_post { internal; proxy_pass mywebapp/_track.php$is_args$args; } didn't work – infynyxx Jun 29 '10 at 16:27
That would be because you have specified it as internal. An internal location can only be accessed from within Nginx, an empty gif to the client is not internal. – Martin Fjordvald Jun 29 '10 at 20:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.