Skip to content

Commit de7db61

Browse files
authored
Update index.md
added the packages that are required and a note about the file that needs to be enabled
1 parent 79b1c74 commit de7db61

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • docs/guides/security/basics/securing-nginx-with-modsecurity

docs/guides/security/basics/securing-nginx-with-modsecurity/index.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In order to install and configure ModSecurity, you need to have a Linux server w
3333
For instructions, see our guide on [How to Install NGINX on Ubuntu 18.04 LTS](/docs/guides/how-to-install-nginx-ubuntu-18-04/). Installation instructions for several other Linux distributions are also accessible from this guide.
3434

3535
{{< note >}}
36-
This demonstration has been performed on Ubuntu 18.04. However, all techniques demonstrated are distribution agnostic with the exception of package names and package managers.
36+
This demonstration has been performed on Ubuntu 24.04. However, all techniques demonstrated are distribution agnostic with the exception of package names and package managers.
3737
{{< /note >}}
3838

3939
## Downloading & Building ModSecurity
@@ -48,8 +48,8 @@ To begin the installation process, follow the steps outlined below:
4848

4949
sudo apt-get install bison build-essential ca-certificates curl dh-autoreconf doxygen \
5050
flex gawk git iputils-ping libcurl4-gnutls-dev libexpat1-dev libgeoip-dev liblmdb-dev \
51-
libpcre3-dev libpcre++-dev libssl-dev libtool libxml2 libxml2-dev libyajl-dev locales \
52-
lua5.3-dev pkg-config wget zlib1g-dev zlibc libxslt libgd-dev
51+
libpcre3-dev libpcre2-dev libssl-dev libtool libxml2 libxml2-dev libyajl-dev locales \
52+
lua5.3-dev pkg-config wget zlib1g-dev libxslt1-dev libgd-dev libperl-dev
5353

5454
1. Ensure that git is installed:
5555

@@ -238,6 +238,10 @@ Now that you have configured ModSecurity to work with Nginx, you must enable Mod
238238
modsecurity on;
239239
modsecurity_rules_file /etc/nginx/modsec/main.conf;
240240

241+
{{< note >}}
242+
Edit the file that is actually symlinked in `sites-enabled/`. Verify with `ls -la /etc/nginx/sites-enabled/`.
243+
{{< /note >}}
244+
241245
Here is an example configuration file that includes the above lines:
242246

243247
{{< file "/etc/nginx/sites-available/default" nginx >}}

0 commit comments

Comments
 (0)