Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Client's IP-address

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
lundstro
Posts: 4
Joined: Sun Mar 03, 2019 11:16 am

Os: CentOS 6x
Web: apache + nginx
Client's IP-address
  • Quote

Post by lundstro » Sun Mar 03, 2019 11:38 am

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
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: Client's IP-address
  • Quote

Post by plutocrat » Mon Mar 04, 2019 6:23 am

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
Top

lundstro
Posts: 4
Joined: Sun Mar 03, 2019 11:16 am

Os: CentOS 6x
Web: apache + nginx
Re: Client's IP-address
  • Quote

Post by lundstro » Tue Mar 12, 2019 7:45 am

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.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password