]> juplo.de Git - website/commitdiff
WIP:fpm
authorKai Moritz <kai@juplo.de>
Tue, 18 Nov 2025 21:52:52 +0000 (22:52 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 18 Nov 2025 21:52:52 +0000 (22:52 +0100)
docker-compose.yml
nginx.conf

index f0c932ddad07d6a647e38ec6ff5e40215c42eabe..f5350f08ecfce866aa22f9a7b76d5efd381997d2 100644 (file)
@@ -22,6 +22,8 @@ services:
       WORDPRESS_DB_CHARSET: latin1
       WORDPRESS_DB_COLLATE: latin1_general_ci
       WORDPRESS_SECRET_KEY: vTelcON5v26YTrdtKfMvyYFuetRwaWyK2K4tfalgpr
+    ports:
+      - 9000:9000
     tmpfs:
       - /tmp
       - /run
index 0392adc3b145a3ffb793d056c0281f366979e3b9..f7cb1d3b09bb9c48caa06603cc66b4dcec30c2de 100644 (file)
@@ -1,65 +1,28 @@
 server {
     listen 80;
-    listen [::]:80;
     server_name localhost;
+    root /var/www/html;
 
-    root /usr/share/nginx/html/juplo.de/dist;
+    index index.php;
 
-    location /projects/ {
-        alias /usr/share/nginx/html/projects/;
-        expires 0;
-    }
-    location /hibernate-maven-plugin/ {
-        alias /usr/share/nginx/html/hibernate-maven-plugin/;
-        expires 0;
-    }
-    location /hibernate-maven-plugin-2.0.0/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/2.0.0/;
-        expires 0;
-    }
-    location /hibernate4-maven-plugin-1.1.1/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.1.1/;
-        expires 0;
-    }
-    location /hibernate4-maven-plugin-1.1.0/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.1.0/;
-        expires 0;
-    }
-    location /hibernate4-maven-plugin-1.0.5/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.5/;
-        expires 0;
-    }
-    location /hibernate4-maven-plugin-1.0.4/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.4/;
-        expires 0;
-    }
-    location /hibernate4-maven-plugin-1.0.3/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.3/;
-        expires 0;
-    }
-    location /hibernate4-maven-plugin-1.0.2/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.2/;
-        expires 0;
-    }
-    location /hibernate4-maven-plugin-1.0.1/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.1/;
-        expires 0;
-    }
-    location /hibernate4-maven-plugin-1.0/ {
-        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0/;
-        expires 0;
+    location / {
+        try_files $uri $uri/ /index.php?$args;
     }
 
-    index index.php;
-
     rewrite /wp-admin$ $scheme://$host$uri/ permanent;
 
-    location ~ \.php$ {
-        try_files $uri =404
+    location ~ [^/]\.php(/|$) {
+        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
+        if (!-f $document_root$fastcgi_script_name) {
+            return 404;
+        }
+
         include fastcgi_params;
-        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         fastcgi_pass     wordpress:9000;
+        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+        fastcgi_param PATH_INFO             $fastcgi_path_info;
+        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
+
         fastcgi_index    index.php; 
     }
 }
-