Jump to content
AskCloud.com
  • Join the site

    Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!  This message will be removed once you have signed in.

Sign in to follow this  
Nouman Saleem

How to add sub domain with elastic api

Recommended Posts

A quick clarification for a hiccup, we have a ec2 instance with one api server which is using laravel and angular apache for frontend.

I have to add a angular application from samplepost.com and laravel application from apis.samplepost.com.

Can we acheive it without using route53. 

Share this post


Link to post
Share on other sites

Why would you NOT want to use Route53? how would you divert traffic to your EIP?

 

a quick resolve would be, assign an new Elastic IP to EC2 instance

Create A records for both example.com and apis.example.com pointed to Elastic IP which you have assigned.

Configure Apache on EC2 instance to serve requests for sample.com and then configure Apache on EC2 instance to send requests for apis.example.com to your Laravel app

Share this post


Link to post
Share on other sites
Sign in to follow this  



×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.