Restoring the original visitor IP to VestaCP

If you use the hosting control panel VestaCP, you have both Nginx and Apache running on your server. Requests are proxied through Nginx before going to Apache.

Because of this Nginx proxy, you actually need to follow the instructions to configure Nginx to return the real visitor IP address. Mod_cloudflare for apache is not needed unless you disable the Nginx server for some requests. (Adding mod_cloudflare to apache will not conflict with the Nginx server configuration.)

Configuring Nginx to return the real user's IP Address using Cloudflare

Not finding what you need?

95% of questions can be answered using the search tool. This is the quickest way to get a response.

Powered by Zendesk