summaryrefslogtreecommitdiff
path: root/nginx.conf
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-07-23 09:03:12 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2026-07-23 09:08:24 -0700
commit8e09d75db41961ed72b0d12dcb5337049dda77ac (patch)
tree081114f240374b1505132dc526b20d60c52864a7 /nginx.conf
parentab13546fd608c85e483d5131f9af76c3b0851608 (diff)
downloadlizdotcoffee-8e09d75db41961ed72b0d12dcb5337049dda77ac.tar.gz
lizdotcoffee-8e09d75db41961ed72b0d12dcb5337049dda77ac.zip
PHP
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf19
1 files changed, 17 insertions, 2 deletions
diff --git a/nginx.conf b/nginx.conf
index 532232e..81c496c 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -2,7 +2,7 @@ server {
listen 80;
server_name _;
root /usr/share/nginx/html;
- index index.html;
+ index index.php index.html;
location ~* \.html$ {
add_header Cache-Control "no-cache, no-store, must-revalidate";
@@ -10,11 +10,26 @@ server {
add_header Expires "0";
}
+ location ~* \.php$ {
+ add_header Cache-Control "no-cache, no-store, must-revalidate";
+ add_header Pragma "no-cache";
+ add_header Expires "0";
+
+ try_files $uri =404;
+ fastcgi_pass 127.0.0.1:9000;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ include fastcgi_params;
+ }
+
location = / {
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
- try_files /index.html =404;
+
+ fastcgi_pass 127.0.0.1:9000;
+ fastcgi_param SCRIPT_FILENAME $document_root/index.php;
+ include fastcgi_params;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot|mp4|webm)$ {