nypahe
Intern
Intern
  • UID2617
  • Fans0
  • Follows0
  • Posts4
Reads:644Replies:3

[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
  • Posts198
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
Guest