Skip to content

Commit ad2c1bd

Browse files
Tweaks
1 parent 2d34a28 commit ad2c1bd

File tree

4 files changed

+19
-25
lines changed

4 files changed

+19
-25
lines changed

content/learning-paths/servers-and-cloud-computing/nginx-on-azure/baseline.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight: 5
66
layout: learningpathall
77
---
88

9-
# Baseline test NGINX with a static website
9+
## Baseline test NGINX with a static website
1010

1111
Once NGINX is installed and serving the default welcome page, verify that it can serve your own content. A baseline test with a simple static HTML site confirms that NGINX is correctly configured and working as expected on your Ubuntu Pro 24.04 LTS virtual machine.
1212

@@ -19,7 +19,7 @@ cd /var/www/my-static-site
1919

2020
## Create an HTML file
2121

22-
Create a simple HTML page to replace the default NGINX welcome page. Using a file editor of your choice, create **index.html** with the following content:
22+
Create a simple HTML page to replace the default NGINX welcome page. Using a file editor of your choice, create `index.html` with the following content:
2323
```html
2424
<!DOCTYPE html>
2525
<html lang="en">
@@ -63,13 +63,13 @@ Create a simple HTML page to replace the default NGINX welcome page. Using a fil
6363
```
6464

6565
## Adjust permissions
66-
Ensure that NGINX (running as the **www-data** user) can read the files in your custom site directory:
66+
Ensure that NGINX (running as the `www-data` user) can read the files in your custom site directory:
6767
```console
6868
sudo chown -R www-data:www-data /var/www/my-static-site
6969
```
7070

7171
## Update NGINX configuration
72-
Point NGINX to serve files from your new directory by creating a dedicated configuration file under **/etc/nginx/conf.d/**:
72+
Point NGINX to serve files from your new directory by creating a dedicated configuration file under `/etc/nginx/conf.d/`:
7373
```console
7474
sudo nano /etc/nginx/conf.d/static-site.conf
7575
```
@@ -91,14 +91,11 @@ server {
9191
error_log /var/log/nginx/static-error.log;
9292
}
9393
```
94-
This configuration tells NGINX to:
95-
96-
- listen on port 80 (IPv4 and IPv6)
97-
- serve files from `/var/www/my-static-site/`
98-
- use `index.html` as the default page
99-
- log access and errors to dedicated log files for easier troubleshooting
94+
This server block listens on port 80 for both IPv4 and IPv6, serves files from `/var/www/my-static-site/`, and uses `index.html` as the default page. It also writes access and error events to dedicated log files to simplify troubleshooting.
10095

96+
{{% notice Note %}}
10197
Make sure the path to your `index.html` file is correct before saving.
98+
{{% /notice %}}
10299

103100
## Disable the default site
104101
NGINX ships with a packaged default site configuration. Since you created a custom config, disable the default to avoid conflicts:
@@ -132,6 +129,6 @@ http://<your-vm-public-ip>/
132129

133130
## Verify the page renders
134131
You should see your custom page instead of the default welcome page:
135-
![Custom static website served by NGINX on Azure VM alt-text#center](images/nginx-web.png)
132+
![Custom static website served by NGINX on Azure VM alt-text#center](images/nginx-web.png "Custom static website served by NGINX on an Azure Arm64 VM")
136133

137134
This verifies the basic functionality of the NGINX installation. You can now proceed to benchmarking NGINX performance on your Arm-based Azure VM.

content/learning-paths/servers-and-cloud-computing/nginx-on-azure/benchmarking.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight: 6
66
layout: learningpathall
77
---
88

9-
# Benchmark NGINX with ApacheBench (ab) on Ubuntu Pro 24.04 LTS
9+
## Benchmark NGINX with ApacheBench (ab) on Ubuntu Pro 24.04 LTS
1010

1111
Use ApacheBench (**ab**) to measure NGINX performance on your Arm64 Azure VM. This section shows you how to install the tool, run a basic benchmark, interpret key metrics, and review a sample result from an Azure **D4ps_v6** instance.
1212

@@ -109,12 +109,7 @@ Percentage of the requests served within a certain time (ms)
109109

110110
## Interpret benchmark results
111111

112-
ApacheBench outputs several metrics. Key ones to focus on include:
113-
114-
- Requests per second: average throughput
115-
- Time per request (mean): latency per request
116-
- Failed requests: should be **0**
117-
- Transfer rate: effective bandwidth
112+
ApacheBench produces a variety of metrics, but the most useful ones highlight how well your server handles load. The requests per second value shows the average throughput, while the time per request (mean) indicates the latency experienced by each request. Ideally, the failed requests metric should remain at zero to confirm reliability. Finally, the transfer rate measures the effective bandwidth used by the responses, giving you insight into overall data flow efficiency.
118113

119114
## Benchmark summary on Arm64
120115

@@ -146,7 +141,7 @@ The following results were collected on an Arm64 **D4ps_v6** VM running **Ubuntu
146141

147142
These results highlight the performance characteristics of NGINX on Arm64-based Azure VMs (such as **D4ps_v6**):
148143

149-
- High Requests Per second(31,523.86 requests/sec), demonstrating high throughput under concurrent load.
144+
- High Requests per second (31,523.86 requests/sec), demonstrating high throughput under concurrent load.
150145
- Response time per request averaged 1.586 ms, indicating efficient handling of requests with minimal delay.
151146
- Zero failed requests, confirming stability and reliability during testing.
152147
- Consistently low connection and processing times (mean ≈ 1 ms), ensuring smooth performance.

content/learning-paths/servers-and-cloud-computing/nginx-on-azure/deploy.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ This confirms that NGINX is functional at the system level, even before exposing
108108

109109
## Allow HTTP traffic (port 80) in UFW and NSG
110110

111-
When you created your VM instance earlier, you configured the Azure **Network Security Group (NSG)** to allow inbound HTTP (**port 80**) traffic. On the VM itself, you must also allow traffic through the Ubuntu firewall (**UFW**). Run:
111+
When you created your VM instance earlier, you configured the Azure Network Security Group (NSG) to allow inbound HTTP (port 80) traffic.
112+
113+
On the VM itself, you must also allow traffic through the Ubuntu firewall (UFW). To do this, run:
112114

113115
```console
114116
sudo ufw allow 80/tcp
@@ -154,7 +156,7 @@ You can now access the NGINX welcome page from your VM’s public IP address. Ru
154156
echo "http://$(curl -s ifconfig.me)/"
155157
```
156158

157-
Copy the printed URL and open it in your browser. You should see the default NGINX welcome page, which confirms that HTTP traffic is reaching your VM.
159+
Copy the printed URL and open it in your browser. You should see the default NGINX welcome page as shown below, which confirms that HTTP traffic is reaching your VM:
158160

159161
![NGINX default welcome page in a web browser on an Azure VM alt-text#center](images/nginx-browser.png)
160162

content/learning-paths/servers-and-cloud-computing/nginx-on-azure/instance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ layout: learningpathall
77
---
88
## Set up your development environment
99

10-
There are several ways to create an Arm-based Cobalt 100 virtual machine:
10+
There is more than one way to create an Arm-based Cobalt 100 virtual machine:
1111

1212
- The Microsoft Azure portal
1313
- The Azure CLI
1414
- Your preferred infrastructure as code (IaC) tool
1515

16-
In this section, you will use the Azure portal to create a virtual machine with the Arm-based Azure Cobalt 100 processor.
16+
In this Learning Path, you will use the Azure portal to create a virtual machine with the Arm-based Azure Cobalt 100 processor.
1717

18-
This Learning Path focuses on the general-purpose virtual machines in the D-series. For further information, see the Microsoft Azure guide for the [Dpsv6 size series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpsv6-series).
18+
You will focus on the general-purpose virtual machines in the D-series. For further information, see the Microsoft Azure guide for the [Dpsv6 size series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpsv6-series).
1919

2020
While the steps to create this instance are included here for convenience, for further information on setting up Cobalt on Azure, see [Deploy a Cobalt 100 virtual machine on Azure Learning Path](/learning-paths/servers-and-cloud-computing/cobalt/).
2121

@@ -40,7 +40,7 @@ To get started, launch the Azure portal and navigate to **Virtual Machines**. Th
4040

4141
![Azure portal VM creation — Azure Cobalt 100 Arm64 virtual machine (D4ps_v6) alt-text#center](images/instance1.png "Allowing inbound port rules")
4242

43-
Now select the **Review + create** tab and review the configuration for your virtual machine. It should look like the following:
43+
Now select the **Review and create** tab and review the configuration for your virtual machine. It should look like the following:
4444

4545
![Azure portal VM creation — Azure Cobalt 100 Arm64 virtual machine (D4ps_v6) alt-text#center](images/ubuntu-pro.png "Reviewing and creating an Azure Cobalt 100 Arm64 VM")
4646

0 commit comments

Comments
 (0)