This commit is contained in:
parent
7053659cf3
commit
7783e1a557
@ -39,6 +39,12 @@ http {
|
||||
|
||||
client_max_body_size 500M; # Will get replaced by the environment variable MAX_UPLOAD_SIZE
|
||||
|
||||
# Fallback 404 page
|
||||
location = /not-found.html {
|
||||
internal;
|
||||
root /tmp/public;
|
||||
}
|
||||
|
||||
# Upload endpoint
|
||||
location /upload.php {
|
||||
try_files $uri =404;
|
||||
@ -60,15 +66,10 @@ http {
|
||||
open_file_cache_min_uses 1;
|
||||
open_file_cache_errors on;
|
||||
|
||||
error_page 404 /not-found.html;
|
||||
|
||||
# Serve the file directly from disk
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Fallback 404 page
|
||||
location = /404.html {
|
||||
internal;
|
||||
root /tmp/public;
|
||||
}
|
||||
error_page 404 /404.html;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user