Browse Source

real ip pour Nginx

master
Jérémy Lecour 6 months ago
committed by Jérémy Lecour
parent
commit
7747b84f1a
  1. 4
      vhost-81.conf
  2. 3
      vhost-82.conf

4
vhost-81.conf

@ -4,9 +4,13 @@ server {
root /var/www/81;
index index.html;
# include /etc/nginx/snippets/letsencrypt.conf;
ssh_certificate ;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
set_real_ip_from 127.0.0.1;
real_ip_recursive on;
real_ip_header X-Forwarded-For;
}

3
vhost-82.conf

@ -9,4 +9,7 @@ server {
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
set_real_ip_from 127.0.0.1;
real_ip_recursive on;
real_ip_header X-Forwarded-For;
}
Loading…
Cancel
Save