萬盛學電腦網

 萬盛學電腦網 >> 服務器教程 >> Nginx配置error

Nginx配置error

   幾個命令自己看吧,不懂的評論提問

  error_page 404 = @homepage;

  location @homepage {

  rewrite .* / permanent;

  }

  1.測試nginx.conf正確性: /usr/local/nginx/sbin/nginx -t

  2.重新加載nginx生效:/usr/local/nginx/sbin/nginx -s reload

copyright © 萬盛學電腦網 all rights reserved