Home>

MY NGINX.CONF:

location /{
            # ROOT 'D: \ Company \ Name \ Layout-Manager \ Frontend \ Public';
            # Index index.html;
            proxy_pass http: //LocalHost: 3080;
        }
        location /json /{
            root 'd: \ company \ Name \ layout-manager \ json \';
        }

The problem is that if you leave only the first location, then the NGINX process starts and at the address LocalHost: 80 opens the application, but if you add a second location for static files, the process does not start ... What I do wrong ?

I tried it like this:

Location ~ \. (JSON) $ {
            root 'd: \ company \ Name \ layout-manager \ json \';
        }
  • Answer # 1
    Location ~ \. (JSON) $ {
                Root D: /Company /Name /Layout-Manager /Json /;
            }
    

    This configuration has worked (it was necessary to remove quotes)