• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Access log warning

EnriqueR

Regular Pleskian
Since I've updated Plesk 12.5, my access.log file only stores the IP of my VPS server instead of the IP client. I know this is because this IP start saving from just in time when the update was. What could be happening?
 
Please check that in file /etc/httpd/conf/plesk.conf.d/server.conf you have

<IfModule mod_remoteip.c>
RemoteIPInternalProxy xxx.xxx.xxx.xxx
RemoteIPHeader X-Forwarded-For
</IfModule>

Do you have nginx enabled?
 
Please check that in file /etc/httpd/conf/plesk.conf.d/server.conf you have

<IfModule mod_remoteip.c>
RemoteIPInternalProxy xxx.xxx.xxx.xxx
RemoteIPHeader X-Forwarded-For
</IfModule>

Do you have nginx enabled?
Yes, I have it:
<IfModule mod_remoteip.c>
RemoteIPInternalProxy IP1 IP2 IP3
RemoteIPHeader X-Forwarded-For
</IfModule>

The access_log file has the lines like this:
IP1 - - [15/Oct/2015:07:55:11 +0200] "GET ...
IP1 - - [15/Oct/2015:07:55:21 +0200] "GET ...
...

And the error_log file is wrong too.
 
Have you tried simple possible solution:

# plesk repair web

?
 
Have you tried simple possible solution:

# plesk repair web

?
I have 4 questions. Which one I choose?
Reinstall SSL certificates and set the default SSL certificate for all IP addresses?
Repair server-wide configuration parameters for web servers?
Update the file of sharing passwords and permissions of users according to actual information?
Repair web server configuration for all domains?
 
I suppose that 2 and 4 would be useful.
Nothing
Error messages: 0; Warnings: 0; Errors resolved: 0
I have seen the access_log again and the same problem.
I do not know why when the user accesses web files via web, the system stores the internal IP of the server instead of storing the client IP.
 
Do you see the same behaviour when you disable nginx?
 
Back
Top