diff --git a/README.md b/README.md new file mode 100644 index 0000000000..420bc7a3cc --- /dev/null +++ b/README.md @@ -0,0 +1,136 @@ +[Configuring and lauching an Nginx Webserver] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/b9820a50-815e-4959-a1c3-6922c4050451) + + + +Installing nginx web server Inginx installed + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/db316149-e3ab-40eb-8f5a-cb71eef4ec53) + + +[nginx installed and confirmed running] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/f5d2f7da-2186-4cc6-b3b3-db7de1a90154) + + +[nginx page on the browser] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/e54f0a1b-de36-4fbf-b0da-2176758959bf) + + + +[creating backup for nginx file] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/5a0a05b1-fd3f-455e-bbf1-52429ff399fc) + + + + +[creating new config nginx file to populate the 3 tomcat IPs] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/4f6e013d-0fb7-4163-b7a1-e36328ec3c47) + + + +[ populated with the 3 tomcats privateIPs] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/3554afb8-51fa-4058-9566-0a9c479ac97f) + + + +[confirming if configuration is ok and restarting nginx] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/c172cb25-5f24-4f0f-bbb2-771e3d8a5e60) + + + + +[ bad gateway on the browser ] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/870facf4-eb24-4672-a57a-3105c9deb9b4) + + + +[setting SELinux permission] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/8cc4a8e6-4513-48bb-82a7-731942b90a42) + + + + +[nginx page on the browser] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/2be8ee94-5a7d-4ca8-9072-04e9500cd9ec) + + +[cloning the repository to maven server] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/45bd15b9-5826-4afb-8794-5be4a95ef0b7) + + + +[building war file from maven server] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/82a1c190-8660-4bf6-8ed2-32c133e82021) + + + +[war file successfully built] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/f480a83b-58a4-4e11-8dec-921ffe24cbec) + + + +[successfully deployed to tomcats 1 and 3] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/ba8349f8-2c24-4d57-9b1e-5f712d9982c7) + + + + +[successfully deployed to tomcat 2] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/6e7a23a8-6621-4e65-90a9-e8108a9a69df) + + + + +[tomcatserver1] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/31d9f5e7-1c2c-4575-b70a-5f0c1f36081a) + + + +[tomcatserver2] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/d2c03767-1cf5-4f63-baef-4c55f887a384) + + +[tomcatserver3] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/6c81b3c0-ae80-4f74-ae76-ba9128346913) + + + + + +[Nginx routed traffic to tomcat1 172 31 35 7] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/7fb7952a-bf2a-4c03-8eba-f62820faf2a6) + + + + + +[Nginx routed traffic to tomcat2 172 31 34 132] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/73d2ea0c-a180-4cfc-9147-b46069e1645a) + + + + +[Nginx routed traffic to tomcat3 172 31 34 161] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/9b8bb743-c235-4291-97a4-00e331592889) + diff --git a/pom.xml b/pom.xml index 536b67a8c1..25092afb61 100644 --- a/pom.xml +++ b/pom.xml @@ -1,153 +1,44 @@ - - 4.0.0 - - com.mt - maven-web-application - war - 0.0.1-SNAPSHOT - - maven-web-application - - Maven Web Project for Java Project - - - Landmark Technologies - http://landmarktechnologies.com/ - - - - 1.8 - 5.1.2.RELEASE - 4.11 - 1.2.17 - http:172.31.27.227:9000/ - admin - admin@123 - UTF-8 - UTF-8 - - - - - - - org.json - json - 20160212 - - - - - junit - junit - 3.8.1 - test - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - org.mockito - mockito-core - 1.9.5 - test - - - - - - org.springframework - spring-core - ${spring.version} - - - org.springframework - spring-web - ${spring.version} - - - org.springframework - spring-webmvc - ${spring.version} - - - org.springframework - spring-context - ${spring.version} - - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - - - - nexus - Landmark Technologies Releases Nexus Repository - http://172.31.18.29:8081/repository/ebay-bts-releases/ - - - - nexus - Landmark Technologies Snapshot Nexus Repository - http://172.31.18.29:8081/repository/ebay-bts-snapshot/ - - - - - - maven-web-app - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.3 - - ${jdk.version} - ${jdk.version} - - - - - org.eclipse.jetty - jetty-maven-plugin - 9.2.11.v20150529 - - 10 - - /maven-web-application - - - - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.9 - - true - true - 2.0 - maven-web-application - - - - - - - + + 4.0.0 + + com.mt + maven-web-application + 0.0.1-SNAPSHOT + war + + + org.springframework.boot + spring-boot-starter-parent + 2.7.0 + + + + + + org.springframework.boot + spring-boot-starter-web + 2.7.0 + + + org.json + json + 20210307 + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + com.mt.MavenWebApplication + + + + + diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 7bd0e8618c..7a9b5183b0 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -1,18 +1,21 @@ +<%@page import="java.net.InetAddress"%> + <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -MylandmarkTech.com- Home Page +Adfunengineeringltd.com- Home Page -

Welcome to Landmark Technologies.

-

We are supporting the Ebay Black Friday Project. - Landmark Technologies is a software development company. - Class26 will run from October 2, 2021. +

Adfuns Engineering Limited.

+

We are a software development and DeVops company. + Adfuns Engineering Ltd will soon incooperate Cyber Security consultancy into their fold. + Please, be on the look out. The project is to deploy application using Maven into 3 Tomcat +server routing the traffic with Nginx web server using Round_Robbing The shout of the King Jesus is in our midst. HE IS OUR SUCCESS ACCESS KEY


@@ -20,20 +23,50 @@ - Landmark Technology, - Toronto, Ontario, Canada - +1 437 215 2483, - mylandmarktech@gmail.com + Adfuns Engineering Ltd, + No Agbowo Street, Opposite Univerity Of Ibadan, + Ibadan. + Oyo State + +2348034228676, + adfunsengineeringltd@gmail.com
- Mail to Landmark Technologies + Mail Adfunsengineeringltd
+
+ +
+ + + +

Server Side IP Address


+

+ <% + String ip = ""; + try { + InetAddress inetAddress = InetAddress.getLocalHost(); + ip = inetAddress.getHostAddress(); + out.println("Server Host Name :: " + inetAddress.getHostName()); + + } catch (Exception e) { + out.println("Error: " + e.getMessage()); + } + + %> +
+ <% out.println("Server IP Address :: " + ip);%> + +

+ + + +

Service : Get Employee Details



-

Landmark Technologies - Consultant, Training, Development Center.

-

Copyrights 2019 by Landmark Technologies

+

Adfuns Engineering Ltd - Consultant, Training, Development Center.

+

Copyrights 2024 by Adfunsengineering