How can I access localhost upload.php using apache2 proxy setting from my locally running AngularJS application -
i running angularjs application in local host port number 9090 trying save image. found quick w3 schools php5 upload link upload image. so, using method can verify whether upload image concept working or not. when access without proxy, link works fine.
when, tried access link using proxy pass reverse angularjs application, not able access it.
i don't know on php , want verify image upload works fine or not.
my apache2 configuration here , listening on port 80
proxypass /upload-test http://127.0.0.1/upload-test/ proxypassreverse /upload-test http://127.0.0.1/upload-test/ this upload method angularjs
var fd = new formdata(); //take first selected file fd.append($file, $files[0]); console.log(fd); $http.post('/upload-test',fd, { headers: {'content-type': undefined}, transformrequest: angular.identity }).success(function(data,response){ console.log("inside success function ", response, data); }).error(function(data,response){ console.log("inside failure function ", response, data); }); really appreciate
i think thats right location. far remember site-enabled symbolic links site-available.
i think config should this:
proxypass /upload-test http://127.0.0.1:9090/upload-test/ proxypassreverse /upload-test http://127.0.0.1:9090/upload-test/
Comments
Post a Comment