drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

Can we host the api in subdomain? #78

Closed jijo777 closed 9 years ago

jijo777 commented 9 years ago

Can we host the api in a subdomain and make it work with the proxy? What will be the configuration for setting the subdomain? Now my configuration is like this proxies: [{ context: '/', // the context of the data service host: 'abc.example.com', // wherever the data service is running // port: 999 // the port that the data service is running on }], but it is not working when I am giving a sub domain. Any input much appriciated!..