We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Client's IP-address
Client's IP-address
Hi,
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?
Kenneth
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?
Kenneth
Re: Client's IP-address
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 ip.ad.re.ss/phpmyadmin, and if you're browsing by mydomain.com it will appear at mydomain.com/phpmyadmin. This is so any user on any domain can access it. Config for phpmyadmin is in /etc/phphmyadmin/apache.conf
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 ip.ad.re.ss/phpmyadmin, and if you're browsing by mydomain.com it will appear at mydomain.com/phpmyadmin. 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
Hi,
"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.
"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.