记录一下:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name example.com www.example.com;
include snippets/ssl-example.com.conf;
include snippets/ssl-params.conf;
index index.php index.html index.htm index.nginx-debian.html;
location / {
root /var/www/example_com/public/_site;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
include snippets/fastcgi-php.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
location /en_edu {
alias /var/www/en_edu;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
include snippets/fastcgi-php.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
location ~ /\.ht {
deny all;
}
}