commit db787cc57cc26473da08e3a5df08ada7305bc55a Author: vlw Date: Fri Feb 21 14:41:52 2025 +0100 Upload files to "/" diff --git a/extensionless-php-fpm.conf b/extensionless-php-fpm.conf new file mode 100644 index 0000000..9a09eb9 --- /dev/null +++ b/extensionless-php-fpm.conf @@ -0,0 +1,31 @@ +server { + listen 80; + + server_name _; + + root /var/www; + index index.html index.php; + + client_max_body_size 100M; + + add_header Access-Control-Allow-Origin *; + + location / { + try_files $uri $uri.html $uri/ @extensionless-php; + autoindex on; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php8.3-fpm.sock; + } + + location @extensionless-php { + rewrite ^(.*)$ $1.php last; + } + + location /tools/pla/index.php { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php7.3-fpm.sock; + } +}