server { port_in_redirect off; listen 4000; error_page 403 404 /404.html; location / { root /usr/share/nginx/html; index index.html index.htm; } }