-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
46 lines (34 loc) · 965 Bytes
/
nginx.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
37
38
39
40
41
42
43
44
45
46
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name mgraaf.42.fr;
ssl_certificate /etc/nginx/crt.crt;
ssl_certificate_key /etc/nginx/key.key;
ssl_protocols TLSv1.2 TLSv1.3;
index index.php;
root /var/www/wordpress;
location / {
autoindex on;
try_files $uri $uri/ =404;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass wordpress:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
# autoindex off;
# location / {
# try_files $uri $uri/ = 404;
# }
# location ~ \.php$ {
# # fastcgi_split_path_info ^(.+\.php)(/.+)$;
# fastcgi_pass wordpress:9000;
# # fastcgi_index index.php;
# include fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# # fastcgi_param PATH_INFO $fastcgi_path_info;
# }
}