Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 2.19 KB

30-apache-server.md

File metadata and controls

31 lines (29 loc) · 2.19 KB

Deploying an Apache Server in the Workload VPC

In this section, you will install the Apache server on a workload VSI.

  1. By default, the workload VSI (Virtual Server Instances) are locked down from the management VPC. You will need to allow access through the Access control list. In the Access control list, click the ACL labeled <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 <initial>-management-acl.
    1. Create an ACL inbound rule to allow ssh access from the Workload VPC Management SSH ACL Inbound rule
    2. Create an ACL outbound rule to allow ssh access from the Workload VPC Management SSH ACL Outbound rule
  3. Access the workload VSI by doing the following:
    1. Navigate to Virtual server instances for VPC. Take note of the private IP ("Reserved IP") for the VSI labeled initials-workload-server-1 (10.40.10.4 in this example). private IP
    2. From your machine, copy the private key 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 may repeat the steps 3 and 4 for the workload VSIs -workload-server-2 and -workload-server-3