Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

escape $

$
0
0
Is there a way to escape the $

My configtest returns nginx: [emerg] invalid variable name in line 2:

location = 'dollar' {
echo "$";
}

location /sitemap_ {
rewrite ^/sitemap_(.*)-(.*)-(.*)\.(rss|xml)$ /fcsitemapserver.php?lang=$1&action=$2&page=$3\dollar ;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles