im trying to mock sites from my own FS. i want to intercept any http request and redirect it to my server that will return the needed file. i have wrote a simple default sever:
server { listen <<SERVICE_PORT>> default_server; server_name _; location / { proxy_set_header X-ORIGINAL-URI $request_uri; proxy_set_header X-ORIGINAL-REFERRER $http_referer; proxy_set_header X-ORIGINAL-HOST $http_host; proxy_pass <<BROWSE_RESOURCE_URL>>/browsing/resource/; proxy_redirect off; } } when a url as "http://exapmle.com" enters it works fine. but when any path is added as "http://exapmle.com/bar" it dose not pass the to <<BROWSE_RESOURCE_URL>>/browsing/resource/. currently i recive 404 but not from my server.
offcurce i dont need the orignal uri to be concated to my proxy_pass at all.
why dosent it work for me?