Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: imayushsaini/ContactBook-java-web-app
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Jagadeesan-Varadharaj-rft/ContactBook-java-web-app
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Oct 22, 2023

  1. war file

    Jagadeesan-Varadharaj-rft authored Oct 22, 2023
    Copy the full SHA
    c744d0e View commit details
  2. Copy the full SHA
    f3672a4 View commit details
  3. tomcat

    Jagadeesan-Varadharaj-rft authored Oct 22, 2023
    Copy the full SHA
    b50dad3 View commit details
Showing with 81 additions and 0 deletions.
  1. BIN ContactBook.war
  2. BIN apache-tomcat-9.0.82.tar.gz
  3. +81 −0 tomcat-on-ec2-commands.txt
Binary file added ContactBook.war
Binary file not shown.
Binary file added apache-tomcat-9.0.82.tar.gz
Binary file not shown.
81 changes: 81 additions & 0 deletions tomcat-on-ec2-commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
checkout my blog for more tutorials and tricks -
========================================== -
https://cyberhackersz.blogspot.com -
------------------------------------------ -
-
Like facebook page -
========================================== -
https://facebook.com/cyberhackersz -
-------------------------------------- -
-
clone source code of web app (ContactBook) -
================================= -
https://github.com/imayushsaini/ContactBook-java-web-app -
----------------------------------------------------------------------


tomcat server download
==================================
https://tomcat.apache.org/download-90.cgi
-----------------------------------

conf/tomcat-users.xml
==========================================
<role rolename ="manager-gui"/>
<role rolename="manager-script"/>
<user username="admin" password="12345678" roles="manager-gui,manager-script"/>
--------------------------------------------------

install/java
================================
sudo apt install default-jre
-------------------------------

conf/server.xml
============================================
<Context path="" docBase="ContactBook">

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

</Context>
-----------------------------------------------

install nginx
=========================================
sudo apt install nginx
----------------------------------------


configuring nginx to act as reverse proxy
=====================================
sudo rm /etc/nginx/sites-available/default
sudo nano /etc/nginx/sites-available/default

server {
listen 80;
server_name 34.219.236.72;
location / {
proxy_pass http://172.31.59.60:8090;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}

sudo systemctl status nginx
sudo systemctl start nginx
----------------------------------------------


installing mysql-server
================================
sudo apt install mysql-server
-----------------------------

changing root user password
=============================================
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '12345678';
-------------------------------------------------------------------