server {
...
    root   /srv/www/app/web;

    index index.php index.html;

    port_in_redirect off;
    if (!-e $request_filename) {
        rewrite ^/(.*)/$ https://$host/$1 permanent;
    }

    location /restore {
        alias /srv/www/frontend/build/;
        rewrite ^/restore$ /restore/;
...
При открытии страницы localhost/restore не может найти статику
static/css/main.css
Status Code: 404 Not Found

/srv/www/frontend/build/static/css/
/srv/www/frontend/build/static/js/
/srv/www/frontend/build/static/media/

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,281795,281795#msg-281795

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Ответить