1.7 serves only public_html, so the vhost points there and passes static.php/<path> as PATH_INFO. index.php no longer carries the version, iniset.php does. The complete tarball ships vendor/, so composer is gone; updatedb.sh now runs after each extract. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RywMtsL8qXG7GDY3MHq9Uh
33 lines
1,009 B
Text
33 lines
1,009 B
Text
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name ${server_name};
|
|
root ${root};
|
|
index index.php index.html index.htm;
|
|
|
|
ssl_certificate /var/lib/dehydrated/certs/${server_name}/fullchain.pem;
|
|
ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php;
|
|
}
|
|
|
|
# assets are served through static.php/<path>
|
|
location ~ \.php(?:$|/) {
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
set $path_info $fastcgi_path_info;
|
|
try_files $fastcgi_script_name =404;
|
|
fastcgi_pass php-handler;
|
|
fastcgi_index index.php;
|
|
include params/fastcgi;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $path_info;
|
|
}
|
|
|
|
location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$ {
|
|
access_log off;
|
|
log_not_found off;
|
|
expires 360d;
|
|
}
|
|
}
|