Anomalie #4943
myip.chapril.org ne s'ouvre pas dans le navigateur
Status:
Fermé
Priority:
Faible
Assignee:
Christian P. Momon
Category:
-
Target version:
Start date:
11/29/2020
Due date:
% Done:
0%
Estimated time:
Description
Lorsqu'on interroge myip.chapril.org dans un navigateur, la réponse est une proposition de téléchargement d'un fichier.
Le résultat attendu est l'affichage d'un contenu texte.
Demande : faire en sorte que l'affichage se fasse directement par le navigateur.
History
Updated by Christian P. Momon about 3 years ago
Le nginx de felicette a le Content-Type défini 2 fois dans l'entête de la réponse HTTP :
=(^-^)=root@felicette:/etc/nginx# curl -i -L -4 http://localhost HTTP/1.1 200 OK Server: nginx/1.14.2 Date: Sun, 29 Nov 2020 04:23:27 GMT Content-Type: application/octet-stream Content-Length: 0 Connection: keep-alive Content-Type: text/plain
Et bien sûr, c'est la mauvaise valeur qui est transmise au client final :
cpm@ocmstar (04:59:18) ~ 17 > curl -I -L -4 http://myip.chapril.org HTTP/1.1 200 OK Date: Sun, 29 Nov 2020 04:16:57 GMT Server: nginx/1.14.2 Content-Type: application/octet-stream Content-Length: 13
Updated by Christian P. Momon about 3 years ago
- Status changed from Nouveau to Résolu
Correction faite dans /etc/nginx/sites-enabled/myip.chapril.org :
location / { - add_header Content-Type text/plain; + default_type text/plain; return 200 $http_x_forwarded_for; }
Updated by Christian P. Momon about 3 years ago
- Target version changed from Backlog to Sprint 2020 novembre