Index

joshstock.in / master

Source for serving and static templating/compiling of https://joshstock.in.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
16321 Jan 2023 10:1029e63ddPoint 404 error pages to correct file locationJosh Stockin122G

Blob @ joshstock.in / nginx / prod / servers / filegator.conf

text/plain939 bytesdownload raw
1server {
2 listen 443 ssl http2;
3 listen [::]:443 ssl http2;
4 server_name cloud.joshstock.in;
5 root /var/www/filegator;
6 index index.php index.html index.htm;
7 error_page 404 /error/404.html; location = /error/404.html {
8 root /var/www/josh/static;
9 }
10 location / {
11 try_files $uri $uri/ /index.php?$query_string;
12 }
13 location ~ \.php$ {
14 client_max_body_size 100M;
15 fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
16 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
17 fastcgi_split_path_info ^(.+\.php)(/.+)$;
18
19 try_files $fastcgi_script_name =404;
20
21 set $path_info $fastcgi_path_info;
22 fastcgi_param PATH_INFO $path_info;
23
24 fastcgi_index index.php;
25 include fastcgi_params;
26 }
27 location = /favicon.ico {
28 root /var/www/josh;
29 }
30 location = /static/favicon.png {
31 root /var/www/josh;
32 }
33}
34