EmbeddedPerlModule question
li zJay
zjay1987 at gmail.com
Thu Sep 1 10:01:31 UTC 2011
I want to access nginx $uri variable in perl, the following is my nginx.conf
worker_processes 1;
>
> events {
> worker_connections 1024;
> }
>
> http {
> perl_set $perlvar 'sub {return "ngx_uri:$uri";}';
>
> server {
> listen 80;
> location / {
> add_header "perlvar" $perlvar;
> empty_gif;
> }
> }
> }*
> *
but it doesn't work, nginx $uri variable is empty in perl, can somebody
figure out what the problem is?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110901/a8fde7e5/attachment.html>
More information about the nginx
mailing list