server {
  server_name www.example1.com;
 root     /data/www/www.example1.com;
location / {
  sub_filter 'bad_word' '**This is censored**';
  sub_filter_once off;
}
}