ips.conf

TheMask

Verified User
Joined
Jan 20, 2011
Messages
99
hi

when i add or remove ip DA is recreate ips.conf

but its create missing ips

default create this file


<VirtualHost xx.xx.xx.31:80>
ServerName shared.domain
ScriptAliasMatch ^/~([^/]+)/+cgi-bin/+(.*) /home/$1/public_html/cgi-bin/$2
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip

SuexecUserGroup admin admin

CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost xx.xx.xx.31:443>
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key


ServerName shared.domain
ScriptAliasMatch ^/~([^/]+)/+cgi-bin/+(.*) /home/$1/public_html/cgi-bin/$2
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip

SuexecUserGroup admin admin

CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>


but i have 2 ip address

and DA dont add
NameVirtualHost xx.xx.xx.31:80
NameVirtualHost xx.xx.xx.31:443

so i get shared ip page...

i use apache 2.22
 
Last edited:
this problem appear when update my DA 1.40.3 to 1.42
 
Last edited:
Did you add your other ips through directadmin interface? They need to be added in there not just bound to the network interface. My ips.conf shows all my ip addresses.

http://admin.site-helper.com/ipman.html

You also might be able to just edit /usr/local/directadmin/data/admin/ip.list and make sure your ips are listed in here.
 
Last edited:
yes
all ip added to DA interface and
i see all ip in /usr/local/directadmin/data/admin/ip.list

when DA recreate ips.conf dont add NameVirtualHosts and only add 1 ip

interesting
 
Back
Top