, nginx :
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /home/username/sites/myProject/current/errorPages;
}
location = /image.png {
root /home/username/sites/myProject/current/errorPages/50x_files;
}
src= "image.png". css js!
: :
error_page 500 502 503 504 /errorPages/50x.html;
location /errorPages/ {
root /home/username/sites/myProject/current/;
}
, errorPages (, src= "/errorPages/image.png" ), nginx "/errorPages/...". "=" "location" ( ) "internal"; ( html, nginx).