Index

joshstock.in / 7fbb36e

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 / mail.conf

text/plain950 bytesdownload raw
1server {
2 listen 443 ssl http2;
3 listen [::]:443 ssl http2;
4 server_name mail.joshstock.in;
5 root /var/www/rainloop;
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 fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
15 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
16 fastcgi_split_path_info ^(.+\.php)(/.+)$;
17
18 try_files $fastcgi_script_name =404;
19
20 set $path_info $fastcgi_path_info;
21 fastcgi_param PATH_INFO $path_info;
22
23 fastcgi_index index.php;
24 include fastcgi_params;
25 }
26 location ^~ /data {
27 deny all;
28 }
29 location = /favicon.ico {
30 root /var/www/josh;
31 }
32 location = /static/favicon.png {
33 root /var/www/josh;
34 }
35}
36