WEBVTT

00:00.500 --> 00:06.740
One more thing that I wanted to show I actually forgot in the last lecture is that essentially a 404

00:06.740 --> 00:08.230
not found should not come.

00:08.240 --> 00:10.310
The reason for this is because.

00:11.090 --> 00:14.700
And the Nazi rules if I go to Enginex.

00:19.360 --> 00:20.920
Nocsae rules.

00:20.950 --> 00:30.430
We have actually defined over here that if there is any request that matches one of these rules, a

00:30.430 --> 00:33.700
request denied dot txt should be shown.

00:33.700 --> 00:41.380
So essentially the reason why it is saying not found is because enginex is not able to find this particular

00:41.650 --> 00:44.410
request denied dot txt file.

00:44.410 --> 00:49.750
So if I do a tail, let's go to var log enginex.

00:52.700 --> 00:53.870
And let's do a tale.

00:55.730 --> 00:57.260
On the logs.

00:57.260 --> 01:03.640
Then essentially, if we look over here, then it is not able to find this particular directory.

01:03.650 --> 01:06.260
It is saying failed no such file or directory.

01:06.380 --> 01:10.310
What was essentially our root.

01:11.460 --> 01:12.360
Location.

01:12.360 --> 01:14.220
So let's go to dub, dub, dub.

01:16.590 --> 01:19.260
And essentially there is no such file.

01:19.370 --> 01:21.870
So let's create this file.

01:25.010 --> 01:30.840
Actually we had already created, but it seems that we did it some in some different directory.

01:30.880 --> 01:34.700
So I'll say not so fast and I'll save this.

01:37.530 --> 01:44.040
Now, essentially, if I reload this page, then it should show not so fast.

01:44.550 --> 01:52.860
So this is where you can actually post your custom message for any rule that matches the particular

01:52.860 --> 01:54.630
web application firewall.

01:55.650 --> 01:58.830
So this is it about this lecture.

01:58.830 --> 02:00.840
I hope this has been informative for you.

02:00.840 --> 02:03.420
And again, I'll urge you to try this out.

02:03.450 --> 02:08.760
Now, this is a very nice web application firewall for Nginx.

02:09.750 --> 02:10.650
This is it.

02:10.650 --> 02:14.040
I hope this has been informative for you, and I'd like to thank you for viewing.
