Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 2.35 KB

30-apache-server.md

File metadata and controls

61 lines (38 loc) · 2.35 KB

Deploying an Apache server in the Workload VPC

In this part of the lab, you install an Apache server on a workload VSI.

By default, the workload VSI (Virtual Server Instance) is locked down from the management VPC. You need to allow access through the access control list.

  1. In the Access control list, click the ACL labeled <your_initials>-workload-acl.

    1. Create an ACL inbound rule to allow ssh access from the Management VPC.

      Workload SSH ACL Inbound rule

    2. Create an ACL outbound rule to allow ssh access from the Management VPC.

      Workload SSH ACL Outbound rule

  2. In the Access control list, click the ACL labeled <your_initials>-management-acl.

    1. Create an ACL inbound rule to allow ssh access from the Workload VPC.

    Management SSH ACL Inbound rule

    1. Create an ACL outbound rule to allow ssh access from the Workload VPC.

    Management SSH ACL Outbound rule

  3. Access the workload VSI by completing the following steps:

    1. Go to Virtual server instances for VPC. Take note of the private IP("Reserved IP") for the VSI labeled <your_initials-workload-server-1 (10.40.10.4 in this example). You need it later.

      Private IP

    2. From your computer, copy the private key that is labeled `lab_key`` to the Bastion host.

      scp -i lab-key lab-key root@<Floating IP address of bastion host>:/root
    3. SSH to the bastion host

      ssh -i ./lab-key root@<Floating IP of Virtual server instance>
    4. Change permissions of the private key

      chmod 600 lab-key
    5. SSH to the workload VSI

      ssh -i ./lab-key root@<Private IP address of the workload VSI>
  4. Install the Apache web server by issuing the following commands:

    apt-get update
    apt-get install apache2 --yes
  5. (Optional) You can repeat steps 3 and 4 for the workload VSIs <your_initials>-workload-server-2 and <your_initials>-workload-server-3