Hi I am trying to do the following,
proxy_pass domain1.com/download directory to domain2.com/download but it results in 404 errors when actually downloading anything from domain1.com/download/*
location /download {
proxy_pass http://domain2.com/download;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
note: domain1.com is served from nginx v1.1.4 and domain2.com served on separate server apache based.
when i visit domain1.com/download, i can see the directories content as it is on domain2.com/download but clicking on any zip file or image file and I get 404 page not found ?
does domain1.com/download need to have the actual files on the server ? as it doesn't have those files right now, as I want domain1.com/download to look for and download files at domain2.com/download
thanks