Compare commits
2
Commits
9449f7e149
...
f04b3f5e64
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f04b3f5e64
|
||
|
|
9eddf5d9cd
|
@@ -292,6 +292,9 @@ Le bump de version dans `sw.js` est fait *sur le serveur uniquement* : le dépô
|
|||||||
| Erreurs 500 sur les vidéos/podcasts
|
| Erreurs 500 sur les vidéos/podcasts
|
||||||
| `cache/` non accessible en écriture : `chown -R www-data:www-data cache/`
|
| `cache/` non accessible en écriture : `chown -R www-data:www-data cache/`
|
||||||
|
|
||||||
|
| `502 Bad Gateway` (Nginx)
|
||||||
|
| PHP-FPM injoignable : vérifier le socket réel avec `ls /var/run/php/` et adapter `fastcgi_pass` dans le vhost (ex. `php8.1-fpm.sock` sous Ubuntu 22.04, `php8.3-fpm.sock` sous 24.04) ; vérifier que le service tourne : `systemctl status php*-fpm`
|
||||||
|
|
||||||
| `php-intl` manquant
|
| `php-intl` manquant
|
||||||
| `apt install php-intl` puis `systemctl restart php*-fpm` (Nginx) ou `systemctl restart apache2` (Apache)
|
| `apt install php-intl` puis `systemctl restart php*-fpm` (Nginx) ou `systemctl restart apache2` (Apache)
|
||||||
|===
|
|===
|
||||||
|
|||||||
@@ -62,13 +62,16 @@ server {
|
|||||||
rewrite ^/([^.]+)$ /$1.php last;
|
rewrite ^/([^.]+)$ /$1.php last;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Rediriger les URLs avec .php vers les URLs sans extension
|
|
||||||
location ~ ^/(.+)\.php$ {
|
|
||||||
return 301 /$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Traitement des fichiers PHP
|
# Traitement des fichiers PHP
|
||||||
|
# $request_uri est la requête ORIGINALE du client (elle ne change pas
|
||||||
|
# lors des réécritures internes) : si elle contient .php, on redirige
|
||||||
|
# proprement vers l'URL sans extension ; sinon (réécriture interne
|
||||||
|
# @rewrite ou directive index), on sert le PHP. Cela évite la boucle
|
||||||
|
# infinie /index → /index.php → /index → …
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
if ($request_uri ~ "^(/[^?]+)\.php") {
|
||||||
|
return 301 $1$is_args$args;
|
||||||
|
}
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock; # Adaptez selon votre version PHP
|
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock; # Adaptez selon votre version PHP
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user