search

Home  >  Q&A  >  body text

filter - Is there anything wrong with the Nginx rule I wrote?

if($server_name = fonts.xmap.org){
    sub_filter 'fonts.gstatic.com' 'fonts.xmap.org';
}else if($server_name = jfonts.xmap.org){
    sub_filter 'fonts.gstatic.com' 'jfonts.xmap.org';
}

Kneel down and beg the great god to explain. . .

世界只因有你世界只因有你2749 days ago470

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:25:24

    You can test it with ./nginx -t

    reply
    0
  • Cancelreply