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. Thanks,
On Sunday, November 6, 2016 10:41 PM, "nginx-devel-requ...@nginx.org" <nginx-devel-requ...@nginx.org> wrote: Welcome to the nginx-devel@nginx.org mailing list! You were successfully subscribed to the mailing list. You'll be able to send message in a few minutes. To post to this list, send your message to: nginx-devel@nginx.org General information about the mailing list is at: http://mailman.nginx.org/mailman/listinfo/nginx-devel If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: http://mailman.nginx.org/mailman/options/nginx-devel/czerny599%40yahoo.com You can also make such adjustments via email by sending a message to: nginx-devel-requ...@nginx.org with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe without confirmation. It is: kuang3 Normally, Mailman will remind you of your nginx.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you.
_______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel