après la configuration nginx aux https il ne fonctionne plus voila le code
et j'ai essayé
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 server { listen 80; server_name namedomaine.com; root /home/myname/namedomaine/;return 301 https://namedomaine.com$request_uri; location ^~ /.well-known/ { allow all; } location / { proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; proxy_pass http://127.0.0.1:8000; } }
le reste c'est celui de la sécurité seulement alors ce n'est pas nécessaire vu que mon problème c'est avec nginx merci de votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 server { listen 80; server_name nameproject.com; root /home/myname/nameproject;return 301 https://nameproject.tn$request_uri; location ^~ /.well-known/ { allow all; } location = /favicon.ico { access_log off; log_not_found off; } location /staticfiles/ { root /home/myname/nameproject; } location / { include proxy_params; proxy_pass http://unix:/home/myname/nameproject.sock; } }
Partager