WEBVTT

00:02.980 --> 00:09.940
Let's take a closer look at the Etsy slash engine x slash engine x dot com file, which is engine X's

00:09.940 --> 00:11.680
main configuration file.

00:12.010 --> 00:14.410
The file rarely needs to be changed.

00:14.680 --> 00:20.080
The settings for Engine X are written in the file as simple directives on a single line or as blocks

00:20.080 --> 00:22.180
of directives on multiple lines.

00:22.540 --> 00:28.300
The blocks are made up of a directive, open brackets, more directives and a closing bracket.

00:28.900 --> 00:35.920
Here user w w w data specifies the user under which engine x should run.

00:36.220 --> 00:42.250
This is usually the user named w w w data in a debian based system.

00:42.760 --> 00:48.310
Worker underscore processes auto sets the number of worker processes to be spawned.

00:48.640 --> 00:54.550
The keyword auto means that engine X will automatically determine the number of worker processes to

00:54.550 --> 00:58.030
run based on the number of available CPU cores.

00:58.630 --> 01:05.920
PID slash run slash engine x PID sets the location of the engine X process ID file.

01:06.250 --> 01:12.400
The file is used to store the process idea of the engine x master process and can be used to send signals

01:12.400 --> 01:14.080
to the engine X process.

01:14.710 --> 01:22.240
Include slash tk slash engine x slash modules enabled slash dot com is an include directive that loads

01:22.240 --> 01:25.270
configuration files from the specified directory.

01:25.630 --> 01:34.120
The wildcard character means that all the configuration files with the conf extension in the slash tk

01:34.120 --> 01:39.400
slash engine x slash module's enabled slash directory will be included.

01:39.880 --> 01:46.600
This events code block provided is a configuration section in engine X's main configuration file usually

01:46.600 --> 01:51.480
located at slash TK slash engine x slash engine x conf.

01:52.090 --> 01:58.030
The events block specifies the settings that control how Engine X handles connection requests and manages

01:58.030 --> 01:59.320
worker processes.

01:59.740 --> 02:04.930
The worker underscore connection settings sets the maximum number of simultaneous connections that each

02:04.930 --> 02:06.640
worker process can handle.

02:06.910 --> 02:10.570
The default value is usually set to 512.

02:10.900 --> 02:14.980
In this case, the value is set to 768.

02:15.520 --> 02:21.400
The line hashtag multi underscore exception is commented out, meaning it won't have any effect.

02:21.760 --> 02:27.160
The multi underscore accept setting determines whether a worker process should handle multiple connections

02:27.160 --> 02:27.940
at once.

02:28.300 --> 02:34.800
If multi underscore accept is set on worker processes will accept new connections as quickly as possible.

02:34.810 --> 02:41.500
Improving performance is set to off worker processes will accept new connections one at a time.

02:42.070 --> 02:47.020
The HTTP code block of a configuration file for the Engine X web server.

02:47.380 --> 02:54.370
It sets various options for engine excess behavior such as file transfer, send file, TCP underscore.

02:54.370 --> 03:01.720
No push mime type handling types underscore hash underscore max underscore size include slash TK slash

03:01.720 --> 03:09.820
engine x slash mime types default underscore type SSL slash TLS handling SSL underscore protocols,

03:09.850 --> 03:16.870
SSL underscore prefer underscore server underscore ciphers, logging access underscore log error, underscore

03:16.900 --> 03:25.060
log GZIP compression g zip on and virtual host configurations include slash Etsy slash engine x, slash,

03:25.060 --> 03:32.020
conf, slash conf include slash, Etsy slash engine x slash sites enabled slash.

03:32.380 --> 03:37.600
Some options are commented out prefixed by hashtag and are not currently in effect.

03:38.140 --> 03:41.950
There are different ways of adding more configurations to engine x.

03:42.310 --> 03:48.580
One way is to put a file with the extension dot com from the conf directory and the other is to put

03:48.580 --> 03:51.250
configurations in the site's enabled directory.

03:51.580 --> 03:58.300
The site's enabled directory has a wildcard for all files, while the conf directory has a wildcard

03:58.300 --> 04:00.280
for files that end in dot com.
