Page 1 of 1

Client's IP-address

Posted: Sun Mar 03, 2019 11:38 am
by lundstro

I have a nginx - apache setup. Server is behind a firewall with an internal IP-address.

When I look at apache logs all requests are coming from servers internal IP-address, I guess from Nginx.

So far it hasn't been a problem, but if I try to enable IP based protection in for example WordPress it doesn't of course work.

Looking at Nginxs logs it shows requests coming from firewalls IP-address. In Vesta I have the servers internal IP-address and also the NAT address.

My guess is that Nginx needs to configured, but does anybody know how?

Another questions is about the link to Phpmyadmin found in Vesta. It points to servers internal IP-address, anyone knows how to get it to point towards either the external IP-address or an domainname?


Re: Client's IP-address

Posted: Mon Mar 04, 2019 6:23 am
by plutocrat
Does this help? viewtopic.php?f=11&t=17863

In Wordpress plugins, you sometimes get the option to use X-Forwarded-For header, or X-Remote-IP. Have a look around and see if your plugin has that option.

PHPmyadmin, I believe it will just inherit the domain you're using, so if you're browsing the site by IP then it will appear at, and if you're browsing by it will appear at This is so any user on any domain can access it. Config for phpmyadmin is in /etc/phphmyadmin/apache.conf

Re: Client's IP-address

Posted: Tue Mar 12, 2019 7:45 am
by lundstro

"Does this help? viewtopic.php?f=11&t=17863"

I tried to look at the same conf files mentioned in that post but everything looks to be fine. I even tested to setup an new installation of Vesta but still same problem, very strange.

The phpmyadmin link in Vesta points all the time towards the servers internal IP-address, doesn't matter what address I have in webbrowser. I don't think this is a PHPmyadmin configuration thing, more a Vesta setup.