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

25 lines
550 B
Plaintext
Raw Normal View History

2022-09-19 18:53:02 -04:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name book.libraryofcode.org;
ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
root /opt/book;
index index.html index.htm index.php;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
2022-09-19 18:55:47 -04:00
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
2022-09-19 18:53:02 -04:00
fastcgi_param HTACCESS on;
proxy_read_timeout 800;
}
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?/$1 last;
}
}