Upload files to "/"
This commit is contained in:
commit
db787cc57c
1 changed files with 31 additions and 0 deletions
31
extensionless-php-fpm.conf
Normal file
31
extensionless-php-fpm.conf
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue