Dedicated ip acting as shared ip.

ThaPurno

New member
Joined
Jan 15, 2020
Messages
5
Hi, I am struggeling with a dedicated ip that is acting like its a shared ip. Everything was fine until i updated the SSL certificate on the domain.
Before i updated the SSL certificate it showed the dev website of mymethods.nl wich is on the same server and still works fine.

The domain is found in the screenshot below.
the ip associated ip 89.225.17.110

1579082844800.png

Here are some screens from the DA panel:
admin level ip
1579083065263.png

user level ip
1579083131286.png
And here the Apache file for the domain.

Code:
# Auto generated apache config file by DirectAdmin version 1.50.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to their website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3


<Directory "/home/mym/public_html">
    <IfModule mod_ruid2.c>
        RMode config
        RUidGid mym mym
        #RGroups apache access
        RGroups @none
    </IfModule>
    <IfModule mod_fcgid.c>
        SuexecUserGroup mym mym
    </IfModule>
        php_admin_flag engine ON
        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f mym@mymupgrade.infodation.com'
        php_admin_value mail.log /home/mym/.php/php-mail.log
        php_admin_value open_basedir /home/mym/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/
</Directory>

<VirtualHost 89.255.17.110:80 >
    ServerName mymupgrade.infodation.com
    ServerAdmin webmaster@mymupgrade.infodation.com
    DocumentRoot /home/mym/domains/mymupgrade.infodation.com/public_html
    UseCanonicalName OFF
    <IfModule !mod_ruid2.c>
        SuexecUserGroup mym mym
    </IfModule>
    <IfModule mod_ruid2.c>
        RMode config
        RUidGid mym mym
        #RGroups apache access
        RGroups @none
    </IfModule>
    CustomLog /var/log/httpd/domains/mymupgrade.infodation.com.bytes bytes
    CustomLog /var/log/httpd/domains/mymupgrade.infodation.com.log combined
    ErrorLog /var/log/httpd/domains/mymupgrade.infodation.com.error.log
    <Directory /home/mym/domains/mymupgrade.infodation.com/public_html>
        AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
        Options -ExecCGI
        php_admin_flag engine ON
        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f mym@mymupgrade.infodation.com'
        php_admin_value mail.log /home/mym/.php/php-mail.log
        php_admin_value open_basedir /home/mym/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/
    </Directory>
</VirtualHost>

<VirtualHost 89.255.17.110:443 >
    SSLEngine on
    SSLCertificateFile /usr/local/directadmin/data/users/mym/domains/mymupgrade.infodation.com.cert
    SSLCertificateKeyFile /usr/local/directadmin/data/users/mym/domains/mymupgrade.infodation.com.key
    SSLCACertificateFile /usr/local/directadmin/data/users/mym/domains/mymupgrade.infodation.com.cacert
    ServerName mymupgrade.infodation.com
    ServerAdmin webmaster@mymupgrade.infodation.com
    DocumentRoot /home/mym/domains/mymupgrade.infodation.com/private_html
    UseCanonicalName OFF
    <IfModule !mod_ruid2.c>
        SuexecUserGroup mym mym
    </IfModule>
    <IfModule mod_ruid2.c>
        RMode config
        RUidGid mym mym
        #RGroups apache access
        RGroups @none
    </IfModule>
    CustomLog /var/log/httpd/domains/mymupgrade.infodation.com.bytes bytes
    CustomLog /var/log/httpd/domains/mymupgrade.infodation.com.log combined
    ErrorLog /var/log/httpd/domains/mymupgrade.infodation.com.error.log
    <Directory /home/mym/domains/mymupgrade.infodation.com/private_html>
        AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
        Options -ExecCGI
        php_admin_flag engine ON
        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f mym@mymupgrade.infodation.com'
        php_admin_value mail.log /home/mym/.php/php-mail.log
        php_admin_value open_basedir /home/mym/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/
    </Directory>
</VirtualHost>
result of netstat -an | grep LISTEN | grep ^tcp
1579083191052.png

part of the rusult of httpd -t -D DUMP_VHOSTS
1579083344794.png
 

Attachments

ThaPurno

New member
Joined
Jan 15, 2020
Messages
5
Code:
# Auto generated apache config file by DirectAdmin version 1.50.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

LogFormat "%O \"%r\"" homedir

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

        SuexecUserGroup admin admin

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

<VirtualHost 10.100.100.2:443>
        SSLEngine on
        SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
        SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
        SSLCACertificateFile /etc/httpd/conf/ssl.crt/server.ca

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

        SuexecUserGroup admin admin

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




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

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

<VirtualHost 89.255.17.99:443>
        SSLEngine on
        SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
        SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
        SSLCACertificateFile /etc/httpd/conf/ssl.crt/server.ca

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

        SuexecUserGroup admin admin

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




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

        SuexecUserGroup admin admin

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

<VirtualHost 89.255.17.100:443>
        SSLEngine on
        SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
        SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
        SSLCACertificateFile /etc/httpd/conf/ssl.crt/server.ca

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

        SuexecUserGroup admin admin

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




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

        SuexecUserGroup admin admin

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

<VirtualHost 89.255.17.101:443>
        SSLEngine on
        SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
        SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
        SSLCACertificateFile /etc/httpd/conf/ssl.crt/server.ca

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

        SuexecUserGroup admin admin

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

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
183
Location
UA
/etc/httpd/conf/extra/directadmin-vhosts.conf is there mym.conf included?
httpd restart didn't show any errors?
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
183
Location
UA
Usually "This IP is being shared among many domains." means that domain pointed to IP where no VirtualHost for this domain, so look for other logs to check is VirtualHost loaded (without errors) maybe in /usr/local/directadmin/data/users/mym/httpd.conf another IP for this domain/subdomain. Maybe it exists in another account as subdomain/separate domain.
 

ThaPurno

New member
Joined
Jan 15, 2020
Messages
5
Thnx for your time ill continue the search when i have a solution ill update it here
 

ThaPurno

New member
Joined
Jan 15, 2020
Messages
5
Ok i got it working again. took the ip that worked and the one that did not work and compared them. in the image below you can see that the ip comes back in every virtualhost on the 2nd ip (the one that kept working) so i added all these ip's to the Vhost of the 1ste one. Tada
1579095266475.png
 
Top