mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
26 lines
517 B
Plaintext
26 lines
517 B
Plaintext
server {
|
|
listen 8080;
|
|
server_name _;
|
|
|
|
server_tokens off;
|
|
|
|
index index.html index.htm;
|
|
root /opt/html;
|
|
|
|
error_page 400 /nginx-error-pages/400.html;
|
|
error_page 401 /nginx-error-pages/401.html;
|
|
error_page 403 /nginx-error-pages/403.html;
|
|
error_page 404 /nginx-error-pages/404.html;
|
|
error_page 500 /nginx-error-pages/500.html;
|
|
error_page 502 /nginx-error-pages/502.html;
|
|
|
|
location ^~ /nginx-error-pages/ {
|
|
internal;
|
|
root /opt/html;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri =404;
|
|
}
|
|
}
|