From 6249cbba1410166b00be8246b77dcf45ebc18914 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 5 Dec 2024 16:25:33 +0100 Subject: [PATCH] add reminder for proxy remote_addr --- etc/snippets_subdomain.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/snippets_subdomain.conf b/etc/snippets_subdomain.conf index 80cbfd4..d34987d 100644 --- a/etc/snippets_subdomain.conf +++ b/etc/snippets_subdomain.conf @@ -8,6 +8,10 @@ index index.php index.html; root /var/www/dotclear/app; client_max_body_size 32m; +# Fix remote_addr, uncomment these lines and set proxy IP or subnet +#real_ip_header X-Forwarded-For; +#set_real_ip_from x.x.x.x/x; + # Blogs public paths location ~ /public { root /var/www/dotclear/blogs;