how to rewrite for crawler

aaa.xxx.com {
@bot {
header User-Agent bot
#header User-Agent yandex
#header User-Agent baiduspider
#header User-Agent facebookexternalhit
#header User-Agent embedly
#header User-Agent quora\slink\spreview
#header User-Agent outbrain
#header User-Agent pinterest
}

root * /root/data/hadi
rewrite /auth/* /index.html

rewrite @bot  http://172.16.1.1xx:1337/{uri}

}

not work.

curl --user-agent “Googlebot/2.1 (+http://www.google.com/bot.html)” https://aaaa.xxxx.com/
return empty

Please fill out the help thread template.

This topic was automatically closed after 30 days. New replies are no longer allowed.