• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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