Activity 1:
- Configure Apache Server to Forward the request recieved on 80 to spring petclinic running on your system
- Do the similar activity with Nginx
- Installing spring pet clinic
- Download spring petclinic Refer Here
- Create a ubuntu (20.04) instance on your favorite cloud
- Installing Java
bash
sudo apt update
sudo apt-cache search openjdk
sudo apt-cache madison openjdk-11-jdk
sudo apt install openjdk-11-jdk -y
java -version - Download the spring petclinic
wget https://referenceapplicationskhaja.s3.us-west-2.amazonaws.com/spring-petclinic-2.4.2.jar
java -jar spring-petclinic-2.4.2.jar - To ensure application is running all the time we need to run it in background
- Best Way => is to make this a daemon
- Quick way
- Now configure the apache server to do the rest