what is my syntax error

Victor Oppenheimer victor at camb.com
Thu Mar 7 20:20:23 UTC 2024


In my nginx.conf file on my Windows computerI have the following code in 
nginx.conf.

http { # http context specific to HTTP affecting all virtual servers

# force incoming URLs to lower case
     map $uri $lowercase {~ ^(.+)$ /$1};

When I run nginx -t I get the following error.

nginx: [emerg] invalid variable name in C:\nginx/conf/nginx.conf

What am I dong incorrectly?


Thanks,

    Victor


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20240307/981e60aa/attachment.htm>


More information about the nginx mailing list