zEitEr
Super Moderator
Hello,
Something went wrong on IP or user removal. And we got nginx's corrupted configs.
We don't have user apache, and nginx+apache is installed. Why does nginx now require to include /usr/local/directadmin/data/users/apache/nginx_php.conf ?
The IP was previously assigned to resellerbob
Reseller resellerbob was removed. IP was not cleared (not too sure why and how it happened). I see only that reseller's name was changed to apache in /etc/nginx/directadmin-ips.conf. Why apache? Why not admin? And why do we need empty /usr/local/directadmin/data/users/*/nginx_php.conf when using nginx as a reverse proxy?
Please give us any related information.
Something went wrong on IP or user removal. And we got nginx's corrupted configs.
Code:
nginx: [emerg] open() "/usr/local/directadmin/data/users/apache/nginx_php.conf" failed (2: No such file or directory) in /etc/nginx/directadmin-ips.conf:211
nginx: configuration file /etc/nginx/nginx.conf test failed
We don't have user apache, and nginx+apache is installed. Why does nginx now require to include /usr/local/directadmin/data/users/apache/nginx_php.conf ?
Code:
# find /usr/local/directadmin/custombuild/custom/nginx*/* -type f
/usr/local/directadmin/custombuild/custom/nginx_reverse/conf/nginx.conf
Code:
# ./build version2.0.0 (rev: 1454)
Code:
# less /etc/nginx/directadmin-ips.conf
...
server {
listen 11.22.33.44:443 default_server;
server_name _;
ssl on;
ssl_certificate /etc/httpd/conf/ssl.crt/server.crt.combined;
ssl_certificate_key /etc/httpd/conf/ssl.key/server.key;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
root /var/www/html;
index index.html index.htm index.php;
include /usr/local/directadmin/data/users/apache/nginx_php.conf;
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
include /etc/nginx/webapps.conf;
}
...
The IP was previously assigned to resellerbob
Code:
# cat /usr/local/directadmin/data/admin/ips/11.22.33.44
gateway=
netmask=255.255.255.248
ns=
reseller=resellerbob
status=shared
value=2
Code:
ls -la /usr/local/directadmin/data/users/resellerbob
ls: /usr/local/directadmin/data/users/resellerbob: No such file or directory
Reseller resellerbob was removed. IP was not cleared (not too sure why and how it happened). I see only that reseller's name was changed to apache in /etc/nginx/directadmin-ips.conf. Why apache? Why not admin? And why do we need empty /usr/local/directadmin/data/users/*/nginx_php.conf when using nginx as a reverse proxy?
Please give us any related information.