I am working on a site with amazon EC2 instanc
e, We have created two instance lets EC1
and EC2
. on EC1
we have our website which we have mapped with www.example.com
. and another instance EC
2 has our main application. now what we want is that if anyone type www.example.com
then it should be redirected to EC1 instance
and let if he types www.example.com/anyThingHeTypes
then he should be redirected to EC2 instance
. Is it possible with Amazon instances
? if Yes then please help us guys
This is much easier to do with subdomains. Since DNS can send traffic directly to the second instance. If you want to do it with a folder, than you need to configure your webserver to be a reverse proxy to instance 2.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.