> For the complete documentation index, see [llms.txt](https://tkssharma-devops.gitbook.io/devops-training/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tkssharma-devops.gitbook.io/devops-training/syllabus/untitled/aws-compute/aws-elb/application-load-balancer/example.md).

# Example

ALB path based routing between two different web servers&#x20;

![](/files/-LljjqTEeMdMapnU2scO)

Useful contents: 1. User-data for two different EC2 Instances&#x20;

```
!/bin/bash
yum install httpd -y
service httpd start
chkconfig httpd on
mkdir /var/www/html/bye
echo "Bye from ec2" >  /var/www/html/bye/index.html
echo "Configured successfully"
```

```
!/bin/bash
yum install httpd -y
service httpd start
chkconfig httpd on
mkdir /var/www/html/hi
echo "Bye from ec2" >  /var/www/html/bye/index.html
echo "Configured successfully"
```

![](/files/-Lljkc3EQr4ZHKpIMW4_)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tkssharma-devops.gitbook.io/devops-training/syllabus/untitled/aws-compute/aws-elb/application-load-balancer/example.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
