Help on NGINX css/js/image error 18679

Maxim Dounin mdounin at
Mon Nov 7 10:23:42 UTC 2016


On Mon, Nov 07, 2016 at 06:54:48AM +0000, laser via nginx-devel wrote:

> Hello, I am getting CSS/JS/IMG error shown below while proxying subdirectory to a domain folder, [error] 13991#13991: *26 open() "/var/www/" failed (2: No such file or directory), client:, server:, request: "GET /templates/home/js/script.js HTTP/1.1", host: "", referrer: ""
> I was trying to proxy from a subdomain in a different server to the main domain's subdirectory, and here is my server blocck
> location ^~ /home        {
>                 proxy_pass;
>                 #Proxy Settings                proxy_redirect     off;                #proxy_set_header   Host            $http_host;                #proxy_set_header   X-Real-IP        $remote_addr;                #proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;                        }
> Any suggestion will be greatly appreciated.

Your question doesn't look relevant to the nginx-devel@ mailing 
list.  Please use nginx@ mailing list instead.  Thank you.

Maxim Dounin

More information about the nginx-devel mailing list