Hello,
sorry for posting another thread with a '[BUG]' prefix, but I think that's important.
Today something strange happened, all `NameVirtualHost <IP>:<PORT>` entries disappeared from `/etc/httpd/conf/ips.conf` which resulted in messages like:
and warnings like:
I've added the required `NameVirtualHost <IP>:<PORT>` entries back to `/etc/httpd/conf/ips.conf` but after adding or removing of an IP (via DA panel) these entries disappeared again...
Then I've found this: http://www.directadmin.com/features.php?id=1317
But there is no file like `/usr/local/directadmin/conf/options.conf`.
I thought, OK, it probably should be `/usr/local/directadmin/conf/directadmin.conf` so I've checked my `/usr/local/directadmin/conf/directadmin.conf` and found there:
so according to http://www.directadmin.com/features.php?id=1317 there should be no problem (I'm running HTTPD 2.2).
But there was still a problem with disappearing `NameVirtualHost` entries in `/etc/httpd/conf/ips.conf`.
I kept reading http://www.directadmin.com/features.php?id=1317 again and again and then I came to this brilliant idea, maybe I should look for an `options.conf` file. So I checked `/usr/local/directadmin/custombuild/options.conf` and found there:
Bingo! After changing `apache_ver=2.4` into `apache_ver=2.2` in `/usr/local/directadmin/custombuild/options.conf` and adding an IP address (via DA panel) the `ips.conf` file was created as expected, no `NameVirtualHost` entries were missing this time.
So my problem was solved, but:
1. There's a "typo" in http://www.directadmin.com/features.php?id=1317
2. IMVHO - I was really surprised experiencing, that DA is using the content of `/usr/local/directadmin/custombuild/options.conf` during other operations that custombuild in general.
3. This server was built with custombuild 1.x, which resides in `/usr/local/directadmin/custombuild_1.x` and which contains an `options.conf` too (where apache_ver=2.2) so I don't uderstand, why DA was using the newer (2.x, unused) `/usr/local/directadmin/custombuild/options.conf` instead of `/usr/local/directadmin/custombuild_1.x/options.conf`, but as I've mentioned before, I was rather NOT expecting DA to dive into `custombuild/options.conf`.
I hope this helps, peace & love ;-)
sorry for posting another thread with a '[BUG]' prefix, but I think that's important.
Today something strange happened, all `NameVirtualHost <IP>:<PORT>` entries disappeared from `/etc/httpd/conf/ips.conf` which resulted in messages like:
Code:
This IP is being shared among many domains.
To view the domain you are looking for, simply enter
the domain name in the location bar of your web browser.
and warnings like:
Code:
[warn] VirtualHost <IP>:<PORT> overlaps with VirtualHost
<IP>:<PORT>, the first has precedence, perhaps you need
a NameVirtualHost directive
I've added the required `NameVirtualHost <IP>:<PORT>` entries back to `/etc/httpd/conf/ips.conf` but after adding or removing of an IP (via DA panel) these entries disappeared again...
Then I've found this: http://www.directadmin.com/features.php?id=1317
Code:
When the file:
/etc/httpd/conf/ips.conf
is rewritten, DA will now check the contents of:
/usr/local/directadmin/conf/options.conf
If the following is found:
apache_ver=2.4
(2.4 or higher), then DA will not add the `NameVirtualHost` entries to the ips.conf file.
But there is no file like `/usr/local/directadmin/conf/options.conf`.
I thought, OK, it probably should be `/usr/local/directadmin/conf/directadmin.conf` so I've checked my `/usr/local/directadmin/conf/directadmin.conf` and found there:
Code:
apache_ver=2.0
so according to http://www.directadmin.com/features.php?id=1317 there should be no problem (I'm running HTTPD 2.2).
But there was still a problem with disappearing `NameVirtualHost` entries in `/etc/httpd/conf/ips.conf`.
I kept reading http://www.directadmin.com/features.php?id=1317 again and again and then I came to this brilliant idea, maybe I should look for an `options.conf` file. So I checked `/usr/local/directadmin/custombuild/options.conf` and found there:
Code:
apache_ver=2.4
Bingo! After changing `apache_ver=2.4` into `apache_ver=2.2` in `/usr/local/directadmin/custombuild/options.conf` and adding an IP address (via DA panel) the `ips.conf` file was created as expected, no `NameVirtualHost` entries were missing this time.
So my problem was solved, but:
1. There's a "typo" in http://www.directadmin.com/features.php?id=1317
2. IMVHO - I was really surprised experiencing, that DA is using the content of `/usr/local/directadmin/custombuild/options.conf` during other operations that custombuild in general.
3. This server was built with custombuild 1.x, which resides in `/usr/local/directadmin/custombuild_1.x` and which contains an `options.conf` too (where apache_ver=2.2) so I don't uderstand, why DA was using the newer (2.x, unused) `/usr/local/directadmin/custombuild/options.conf` instead of `/usr/local/directadmin/custombuild_1.x/options.conf`, but as I've mentioned before, I was rather NOT expecting DA to dive into `custombuild/options.conf`.
I hope this helps, peace & love ;-)
Last edited: