My Blog

Tomcat on Cloud

1-click AWS Deployment    1-click Azure Deployment

1-click Google Deployment

Overview

Apache Tomcat, often referred to as Tomcat, is an open-source web server developed by the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages (JSP), Java EL and WebSocket and provides a “pure Java” HTTP web server environment in which Java code can run.The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world.

Apache Tomcat software powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Apache Tomcat is owned by Apache Tomcat (http://tomcat.apache.org/) and they own all related trademarks and IP rights for this software.

Cognosys provides hardened images of Tomcat on the cloud ( AWS marketplace, Azure and Google Cloud Platform).

Deploy Tomcat securely on cloud i.e. AWS marketplace,Azure  and Google Cloud Platform (GCP)

Secured Tomcat on Ubuntu 14.04 LTS

Tomcat on Cloud For AWS

Secured Tomcat on CentOS 7.3

Features

Major Features of Tomcat :

  •  Use of a nonce to prevent cross-site request forgery (CSRF) attacks
  •  Changing the jsessionid on authentication to prevent session fixation attacks altogether
  • Memory leak detection and prevention
  • Use of aliases to store static content outside the war file 5. Servlet 3.0, JSP-EL 2.2 support
  • Easier to embed Tomcat in your applications, e.g. in JBoss
  • Asynchronous logging.

AWS

  •  

Installation Instructions For Windows

Note: How to find PublicDNS in AWS

Step 1) RDP  Connection: To connect to the deployed instance, Please follow Instructions to Connect to Windows  instance on AWS Cloud

Connect to the virtual machine using following RDP credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 3389

Username: To connect to the operating system, use RDP and the username is Administrator.
Password: Please Click here to know how to get password .

Step 2) Application URL: Access the application via a browser at http://PublicDNS/

  • User Name: ec2-user
  • Password: Passw@rd123

 Steps to access the  Admin Panel:

   Note : Manager should not be allowed access from outside RDC.

  • Enter username and password in the given fields and click on the“Login” button to access the Admin Panel.
  • After successful login to the Admin Panel, you will get access to Tomcat Application.

Step 3) Other Information:

1.Default installation path: will be in your root folder “C:\Program Files \Tomcat”
2.Default ports:

  • Windows Machines:  RDP Port – 3389
  • Http: 80
  • Https: 443

Configure custom inbound and outbound rules using this link

AWS Step by Step Screenshot

Installation Instructions For CentOS

Note: How to find PublicDNS in AWS

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to CentOS instance on AWS Cloud

1) Download Putty.

2) Connect to the virtual machine using SSH key Refer this link:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: To connect to the operating system, use RDP and the username is Administrator.
Password : Please Click here  to know how to  get password .

Step 2) Application URL: Access the application via a browser at http://PublicDNS/

  • User Name: ec2-user
  • Password: Passw@rd123

Step 3) Other Information:

Note: Please do the initial setup with http://YourIP/

Version: Magento 2.1.6

1.Default installation path: will be in your web root folder “/var/www/html/
2.Default ports:

  • Linux Machines:  SSH Port – 22
  • Http: 80
  • Https: 443
  • MYSQL ports: By default, these are not open on Public Endpoints. MYSQL: 3306

3. To access Webmin interface for management please follow this link

Configure custom inbound and outbound rules using this link.

Azure

Installation Instructions For TomCat 8 on Ubuntu

Note: How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Azure Cloud

1) Download Putty.

2) Connect to the virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)

Password: Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2)  Other Information:

Version : TomCat 8

Note Open http://your_server_ip:8080 for TomCat server
1. Default installation path: will be in your web root folder “/var/www/html/
2. Default port:

  • Http: 8080

Configure custom inbound and outbound rules using this link

3. To access Webmin interface for management please follow this link

Installation Instructions For TomCat 8 on Centos

Note: How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to CentOS instance on Azure Cloud

1) Download Putty.

2) Connect to the virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)

Password: Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2) Other Information:

Version : TomCat 8

Note Open http://your_server_ip:8080 for TomCat server
1. Default installation path: will be in your web root folder “/var/www/html/
2. Default port:

  • Http: 8080

Configure custom inbound and outbound rules using this link

3. To access Webmin interface for management please follow this link

Google

Installation Instructions For Ubuntu

Step 1) VM Creation:

  1. Click the Launch on Compute Engine button to choose the hardware and network settings.

secured-tomcat-on-ubuntu-14-04-lts-12.You can see at this page, an overview of Cognosys Image as well as some estimated costs of VM.

secured-tomcat-on-ubuntu-14-04-lts-23.In the settings page, you can choose the number of CPUs and amount of RAM, the disk size and type etc.

secured-tomcat-on-ubuntu-14-04-lts-3
Step 2) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Google Cloud

1) Download Putty.

2) Connect to the virtual machine using SSH key

    • Hostname: PublicDNS  / IP of machine
    • Port : 22

Step 3) Database Login Details:

The below screen appears after successful deployment of the image.

successful deployment of the image

For local MySQL root password, please use the temporary password generated automatically during image creation as shown above.

i) Please connect to Remote Desktop as given in step 2 to ensure stack is properly configured and DB is initialized.
ii) You can use MySQL server instance as localhost, username root and password as shown above.

If you have closed the deployment page you can also get the MySQL root password from VM Details  “Custom metadata” Section

Step 4) Other Information:

1.Default ports:

  • Linux Machines:  SSH Port – 22

2. To access Webmin interface for management please follow this link


Installation Instructions For Redhat

Step 1) VM Creation:

  1. Click the Launch on Compute Engine button to choose the hardware and network settings.

2.You can see at this page, an overview of Cognosys Image as well as some estimated costs of VM.

3.In the settings page, you can choose the number of CPUs and amount of RAM, the disk size and type etc.

Step 2) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to RedHat instance on Google Cloud

1) Download Putty.

2) Connect to the virtual machine using SSH key

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Step 3) Database Login Details:

The below screen appears after successful deployment of the image.

successful deployment of the image

For local MySQL root password, please use the temporary password generated automatically during image creation as shown above.

i) Please connect to Remote Desktop as given in step 2 to ensure stack is properly configured and DB is initialized.
ii) You can use MySQL server instance as localhost, username root and password as shown above.

If you have closed the deployment page you can also get the MySQL root password from VM Details  “Custom metadata” Section

Step 4) Other Information:

1.Default ports:

  • Linux Machines:  SSH Port – 22

2. To access Webmin interface for management please follow this link

 

Installation Instructions For CentOS

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to CentOS instance on Google Cloud

1) Download Putty.

2) Connect to virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2) Other Information:

1.Default ports:

  • Linux Machines:  SSH Port – 22

2. To access Webmin interface for management please follow this link

Videos

Secured Tomcat on Ubuntu 14.04 LTS

 

Secured Tomcat on CentOS 7.3

Tomcat on Cloud

Related Posts