Help on NGINX css/js/image error 18679
Maxim Dounin
mdounin at mdounin.ru
Mon Nov 7 10:23:42 UTC 2016
Hello!
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/x1.com/public_html/templates/home/js/script.js" failed (2: No such file or directory), client: 68.5.183.249, server: www.x1.com, request: "GET /templates/home/js/script.js HTTP/1.1", host: "www.x1.com", referrer: "http://www.x1.com/home"
> I was trying to proxy from a subdomain in a different server to the main domain x1.com's x1.com/home subdirectory, and here is my server blocck
> location ^~ /home {
> proxy_pass http://Z.YYY.com/home;
> #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
http://nginx.org/
More information about the nginx-devel
mailing list