Add book server conf block

merge-requests/2/head
Matthew 2022-09-19 18:53:02 -04:00
parent ee0f30a1c5
commit 90f4a0c71d
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
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;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param HTACCESS on;
proxy_read_timeout 800;
}
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?/$1 last;
}
}