You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/nginx-on-azure/baseline.md
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ weight: 5
6
6
layout: learningpathall
7
7
---
8
8
9
-
# Baseline test NGINX with a static website
9
+
##Baseline test NGINX with a static website
10
10
11
11
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.
12
12
@@ -19,7 +19,7 @@ cd /var/www/my-static-site
19
19
20
20
## Create an HTML file
21
21
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:
23
23
```html
24
24
<!DOCTYPE html>
25
25
<htmllang="en">
@@ -63,13 +63,13 @@ Create a simple HTML page to replace the default NGINX welcome page. Using a fil
63
63
```
64
64
65
65
## 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:
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/`:
73
73
```console
74
74
sudo nano /etc/nginx/conf.d/static-site.conf
75
75
```
@@ -91,14 +91,11 @@ server {
91
91
error_log /var/log/nginx/static-error.log;
92
92
}
93
93
```
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.
100
95
96
+
{{% notice Note %}}
101
97
Make sure the path to your `index.html` file is correct before saving.
98
+
{{% /notice %}}
102
99
103
100
## Disable the default site
104
101
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>/
132
129
133
130
## Verify the page renders
134
131
You should see your custom page instead of the default welcome page:
135
-

132
+

136
133
137
134
This verifies the basic functionality of the NGINX installation. You can now proceed to benchmarking NGINX performance on your Arm-based Azure VM.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/nginx-on-azure/benchmarking.md
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ weight: 6
6
6
layout: learningpathall
7
7
---
8
8
9
-
# Benchmark NGINX with ApacheBench (ab) on Ubuntu Pro 24.04 LTS
9
+
##Benchmark NGINX with ApacheBench (ab) on Ubuntu Pro 24.04 LTS
10
10
11
11
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.
12
12
@@ -109,12 +109,7 @@ Percentage of the requests served within a certain time (ms)
109
109
110
110
## Interpret benchmark results
111
111
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.
118
113
119
114
## Benchmark summary on Arm64
120
115
@@ -146,7 +141,7 @@ The following results were collected on an Arm64 **D4ps_v6** VM running **Ubuntu
146
141
147
142
These results highlight the performance characteristics of NGINX on Arm64-based Azure VMs (such as **D4ps_v6**):
148
143
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.
150
145
- Response time per request averaged 1.586 ms, indicating efficient handling of requests with minimal delay.
151
146
- Zero failed requests, confirming stability and reliability during testing.
152
147
- Consistently low connection and processing times (mean ≈ 1 ms), ensuring smooth performance.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/nginx-on-azure/deploy.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,9 @@ This confirms that NGINX is functional at the system level, even before exposing
108
108
109
109
## Allow HTTP traffic (port 80) in UFW and NSG
110
110
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:
112
114
113
115
```console
114
116
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
154
156
echo "http://$(curl -s ifconfig.me)/"
155
157
```
156
158
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:
158
160
159
161

Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/nginx-on-azure/instance.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@ layout: learningpathall
7
7
---
8
8
## Set up your development environment
9
9
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:
11
11
12
12
- The Microsoft Azure portal
13
13
- The Azure CLI
14
14
- Your preferred infrastructure as code (IaC) tool
15
15
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.
17
17
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).
19
19
20
20
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/).
21
21
@@ -40,7 +40,7 @@ To get started, launch the Azure portal and navigate to **Virtual Machines**. Th
40
40
41
41

42
42
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:
44
44
45
45

0 commit comments