I want to develop my application separately (API, JOBS, WEB), so that it stays in this manner:
- API: api.myaddress.com
- JOBS: jobs.myaddress.com
- WEB: myaddress.com
I know how to do that with distinct instances with Amazon and GoogleComputing, however, I was wondering IF, I could setup a single instance to do all that, and each DNS namespace, going to a different port on that machine, like:
- api.myaddress.com resides in xxx.xxx.xxx.xxx:8090
- jobs.myaddress.com resides in xxx.xxx.xxx.xxx:8080
- myaddress.com resides in xxx.xxx.xxx.xxx:80
Also if that is possible, I don't know where I should configure that (Is it in the DNS, or a specific setup on my instance in Amazon/Google?)
Why do you want them to go to a different port? Its certainly not necessary. You can use DNS to point all of those domains/subdomains to a single server/ip address, and then thru your webserver configuration bind the various subdomain names to each particular website on that server.
In IIS you bind in the IIS Manager tool, and apache has a similar ability:
http://httpd.apache.org/docs/2.2/vhosts/examples.html