如何设置Nginx 404页面
三月 8, 2010 by admin · Leave a Comment
在你需要设置404页面的server段里添加:
server { listen 80; server_name _; root /usr/local/www; location / { return 404; } location /404.html { root /home/www; #charset on; #source_charset koi8-r; } access_log off; }
404.html放在/home/www下即可