Skip to main content

Posts

Showing posts with the label AWS EC2 Server Setup

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"> <

Amazon EC2 Server Setup & Installing JDK 8 and Tomcat 8, Running on Port 80 & 443 and Redirect Request from port 80 to 8080 and 443 to 8443

Amazon EC2 Server Setup & Installing JDK 8 and Tomcat 8, Running on Port 80 & 443 and Redirect Request from port 80 to 8080 and 443 to 8443. Step 1 : Log in to your aws account by following this link then click on my account and choose option aws management console. Note: I am assuming you created your account with aws and you are ready with you account if you haven’t done then you can check out on google you will get many and it's a straight forward steps if you have still problem while creating an account you can comment in comment box i will also provide tutorial for that. Once you logged in aws management console you are able to see window like this one Note : Before we go ahead we have to select proper reason from right and side. I choose ohio region for this example. Step 2 : Now you have to choose EC2 Server from Services tab on left side top corner then choose EC2 Services from “Compute option ” You will get window like this one and r