dev/sites-available/44300.conf
2025-11-05 14:18:10 +00:00

39 lines
762 B
Text

server {
listen 44300 ssl http2;
server_name _;
include snippets/vlw.se-ssl.conf;
root /var/www;
index index.html index.php;
client_max_body_size 1G;
add_header Access-Control-Allow-Origin *;
location / {
try_files $uri $uri.html $uri/ @extensionless-php;
autoindex on;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
# With php-cgi (or other tcp sockets):
#fastcgi_pass 127.0.0.1:9000;
}
location @extensionless-php {
rewrite ^(.*)$ $1.php last;
}
# -- Proxies --
# -- Overrides --
location /tools/pla/index.php {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
}