-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmt-backend.conf
More file actions
37 lines (32 loc) · 869 Bytes
/
mt-backend.conf
File metadata and controls
37 lines (32 loc) · 869 Bytes
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
server {
listen 80;
server_name localhost;
root /webser/www/mt-backend/public;
index index.php index.html index.htm;
location /
{
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$
{
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix://run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 600;
include fastcgi_params;
}
location ~ /\.ht
{
deny all;
}
location /.well-known/acme-challenge/
{
root /var/www/letsencrypt/;
log_not_found off;
}
error_log /webser/logs/nginx/mt-backend_error.log;
access_log /webser/logs/nginx/mt-backend_access.log;
}