假设请求点击我的Web应用程序是这样的:
_http://mywebapp/empty.gif DATA1 = ABC&DATA2 = 123
通过使用Nginx的empty_gif模块,我正在做类似于:
location /empty.gif {expires -1; post_action / empty_gif_post;
empty_gif; }
location = / empty_gif_post {internal; proxy_pass http://mywebapp/_track.php ; }
这种方法的问题是,它不会让我检索GET参数。
任何解决这个问题?
proxy_pass foo.php $ is_args $ args