-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.conf
36 lines (29 loc) · 862 Bytes
/
server.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
server {
# Set the ssl to 443 and TLSv1.2 to be sure to have the best security
# The connection will only accept https conection
listen 443 ssl;
listen [::]:443 ssl;
ssl_protocols TLSv1.2;
# define the website files folder and the index pages name
root /var/www/inception/;
index index.php index.html;
# the next lines define the behavior of the server when the user try to access to a file
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_pass php7.4-fpm;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# } don't worry! the end of the server block is write in the Dockerfile