Mart ayı arşivi, 2020

apache 2.4 Sürüm gerçek ip olsun

Apache 2.4 sürümü varsayılan olarak eklenmiştir mod_remoteip ,Çözünürlük silinmediyse yapılandırmayı kontrol edin,Lütfen # sil.

1.Apache yapılandırmasının sonuna aşağıdakiler eklenir:

RemoteIPHeader X-Yönlendirildi-İçin
RemoteIPInternalProxy 127.0.0.1/24
#CloudFlare IP Aralıkları
RemoteIPInternalProxy 103.21.244.0/22
RemoteIPInternalProxy 103.22.200.0/22
RemoteIPInternalProxy 103.31.4.0/22
RemoteIPInternalProxy 104.16.0.0/12
RemoteIPInternalProxy 108.162.192.0/18
RemoteIPInternalProxy 131.0.72.0/22
RemoteIPInternalProxy 141.101.64.0/18
RemoteIPInternalProxy 162.158.0.0/15
RemoteIPInternalProxy 172.64.0.0/13
RemoteIPInternalProxy 173.245.48.0/20
RemoteIPInternalProxy 188.114.96.0/20
RemoteIPInternalProxy 190.93.240.0/20
RemoteIPInternalProxy 197.234.240.0/22
RemoteIPInternalProxy 198.41.128.0/17 #CDN'nizin IP'si,Tekrar tekrar eklenebilir

2.Aşağıdaki yapılandırma bilgilerini değiştirin

  1. #Günlük biçimini değiştirme,Günlük biçimine ekle%bir,Ardından apache'yi yeniden başlatın:
  2. LogFormat “%h% a% l% u% t ”%r\” %>s %b \”%{yönlendiren}i\” \”%{User-Agent}i\”” kombine
  3. LogFormat “%h% a% l% u% t ”%r\” %>s% b ” Yaygın
  4. LogFormat “%h %l %u %t \”%r\” %>s %b \”%{yönlendiren}i\” \”%{User-Agent}i\” %% O” kombine

Yorumlar kapalı