From: Kai Moritz Date: Tue, 18 Nov 2025 21:52:52 +0000 (+0100) Subject: WIP:fpm X-Git-Tag: hugo--cat-tag-pages~35 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=7ebec9256d1594eb6024963eecbf6650b46867eb;p=website WIP:fpm --- diff --git a/docker-compose.yml b/docker-compose.yml index f0c932dd..f5350f08 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/nginx.conf b/nginx.conf index 0392adc3..f7cb1d3b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; } } -