nypahe
Intern
Intern
  • UID2617
  • Fans0
  • Follows0
  • Posts4
Reads:1698Replies:4

[AliCloud Startup Program]Run 2 website on same ECS

Created#
More Posted time:May 6, 2017 10:53 AM
Can I run 2 websites (www.abc.com and www.xyz.com) on the same ECS package?
If it is possible, please send me the documentation to do so
Thanks

shhanshan
Forum Moderator
Forum Moderator
  • UID105
  • Fans3
  • Follows0
  • Posts317
1st Reply#
Posted time:May 9, 2017 14:28 PM
You can deploy two website in one ECS with following step:
1. www.abc.com point ECS IP
2.  www.xyz.com pint   ECS IP
3. Deploy website 1 in port 80
4.  Deploy website 1 in port 8080
5.  www.xyz.com:8080 or  www.abc.com:8080 can access the second website

mao
mao
Intern
Intern
  • UID1374
  • Fans1
  • Follows0
  • Posts8
2nd Reply#
Posted time:May 11, 2017 8:32 AM
You can run as many websites as your ECS instance's performance can support, with proper apache/nginx/etc configuration, you can run multiple sites with one ECS and one IP. You can find some nice webserver tutorial just by googling it.

nypahe
Intern
Intern
  • UID2617
  • Fans0
  • Follows0
  • Posts4
3rd Reply#
Posted time:Jul 13, 2017 4:32 AM
shhanshan:You can deploy two website in one ECS with following step:
1. www.abc.com point ECS IP
2.  www.xyz.com pint   ECS IP
3. ...
回到原帖
Not sure because, for each ECS you can just have one public IP address. Is it possible to create the sub address base on my public address? For example: my original IP address is 45.160.230.10. Can I generate the following IPs address and use them 45.160.230.11 and 45.160.230.12

hanneng
Intern
Intern
  • UID3277
  • Fans2
  • Follows0
  • Posts33
4Floor#
Posted time:Jan 19, 2018 17:25 PM
Hi nypahe

You can run one apache web server on a single ECS instance (a single IP address)  to serve many websites, for example, www.abc.com ,  www.xyz.com , www.def.com , www.ghi.com , etc

You need configure a few thing
1) configure VirtualHost on Apache
2) set the A record (in DNS) to point your domain to the IP
Guest