Skip to main content

Posts

Showing posts with the label EC2 Server

How to create subdomain in tomcat server at EC2 Instance

If you want to create a subdomain for your website that is hosted on aws ec2 instance under tomcat 8 server.  Step 1) First you have to create a "create record set" as i mentioned in below image suppoe i want to create a sub-domain under my website www.web-host-master.com like this products.web-host-master.com then you can enter your subdomain name in field of name.  and then you have to select Type of record that is A -IPv4 Address.  How to create subdomain in aws route 53. then you have to enter your ec2 instance public /elastic ip address in value field.  after enter click on save record set.  Now logged into to your server by ssh like putty. access your server and go to tomcat8 installation directory  in this you have to go conf/server.xml file and you have to edit this file by opening follwoing command.  sudo vi server.xml file  and you have to add these 2 lines under   <Engine name="Catalina" defaultHost="localhost"> <