根据需要对访问的域名跳转到维护页面。
server {
listen 80;
server_name ~^(fzj|monitor).10fei3.top;
if ($host ~* ‘monitor.10fei3.top‘){
rewrite ^/ http://maintaining.10fei3.top/maintaining.html;
}
……
时间: 2024-12-09 00:49:34
根据需要对访问的域名跳转到维护页面。
server {
listen 80;
server_name ~^(fzj|monitor).10fei3.top;
if ($host ~* ‘monitor.10fei3.top‘){
rewrite ^/ http://maintaining.10fei3.top/maintaining.html;
}
……