Install web pages

Last Updated: Sep 04, 2017

After you create the ECS instances, you need to deploy applications. In this tutorial, two static web pages will be deployed on the ECS instances using Apache.

Note: We use the default settings of Apache and only modify the content of the index file. Additionally, two Elastic IPs are bound to the ECS instances for easy management. For details, refer to Bind an EIP.

Procedure

  1. Log on to the ECS instance.

    log on to ECS

  2. Enter the following command to install Apache.

    sudo apt-get install apache2

  3. Enter the following command to modify the content of the index.html file.

    cd /var/www/html

    echo "Hello World! This is ECS01." > index.html

    After modifying the content, enter the Elastic IP of the ECS instance in the web browser, you will see the following content.

    ECS01

  4. Repeat the previous steps to create a web page on the another ECS instance and change the content to Hello World! This is ECS02..

    After modifying the content, enter the Elastic IP of the ECS instance in the web browser, you will see the following content.

    ECS02

Thank you! We've received your feedback.