configurations/Nginx/Server Blocks/sis.libraryofcode.org.conf

28 lines
738 B
Plaintext
Raw Normal View History

2022-02-09 16:39:50 -05:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name sis.libraryofcode.org;
ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
root /var/www/opensis;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ =404;
}
2022-02-14 18:42:37 -05:00
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
2022-02-14 18:46:54 -05:00
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
2022-02-14 18:42:37 -05:00
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 300;
proxy_read_timeout 300;
2022-02-09 16:39:50 -05:00
}
}