I've deployed my Angular 6 based application to apache server. Everything works fine however proxy not working. Proxy configurations works well on localhost. When I built an application and deployed to the apache server. All api calls thrown 404 error.
Here is my proxy.conf.json file:
{
"/api": {
"target": "https://api.mywebpage.com",
"secure": false,
"pathRewrite": {
"^/api": "/v1"
},
"changeOrigin": true,
"logLevel": "debug"
}
}
Are there something need to append .htaccess file to use these proxy settings? Am I missing something?