Nginx/Apache not binding server IP

Poli

Verified User
Joined
Aug 7, 2021
Messages
6
Hello!

I am getting an issue since I switched from OLS to Nginx or Nginx_apache.
My server IP (only IPV4) is not being written in my nginx config file in /etc/nginx/directadmin-ips.conf.

I tried multiple times rebuilding Nginx and running service startips restart.
Even changing the server IP doesn't change it.

Do maybe anyone of you know a solution for it?
Thanks in advance,
Poli
 
Well, the issue is that it's not an error, it's simply that my Nginx and Apache never gets bound to the IPv4 (unique one of my machine).
It is like it doesn't even see it for nginx, however for the directadmin management interface it works.
 
How could you detect that it doesn't get bound with IPv4?

EDIT: I notice the question is regarding the OLS to nginx or nginx_apache. Might be someone can help you on this because I never use OLS and do switching from OLS

or if you can describe more from the log files that would be easier.
 
Last edited:
How could you detect that it doesn't get bound with IPv4?

EDIT: I notice the question is regarding the OLS to nginx or nginx_apache. Might be someone can help you on this because I never use OLS and do switching from OLS

or if you can describe more from the log files that would be easier.
Because the websites doesn't work on IPV4.
And you can clearly see that only my IPV6 addresses are connected to nginx in /etc/nginx/directadmin-ips.conf
As this file is automatic I can't fix it manually.

There is not really a log for this the issue is that my IPV4 doesn't get binded with nginx in the nginx ip file managed by directadmin directly.
Thanks for your help!
 
And you can clearly see that only my IPV6 addresses are connected to nginx in /etc/nginx/directadmin-ips.conf
Inside /etc/nginx/directadmin-ips.conf I only have IPv6 addresses there and website is accessible via IPv4 with no problem (so the file is not the issue). Did you link your IPv4 and IPv6 in the GUI section?

If you are looking a way to link IPv4 and IPv6 together (via command line) you can see this command from the second post: https://forum.directadmin.com/threa...ia-terminal-not-through-gui.62752/post-324428
 
Last edited:
/etc/nginx/directadmin-ips.conf
use for ip-linked ( /usr/local/directadmin/data/template/nginx-ips.conf )

I think you need to trying edit for debug in this file. it for mainly IP.
/etc/nginx/nginx-default.conf
 
Back
Top