Page 1 of 2

Multiple Domains on 1 IP Address showing last created domain

Posted: Wed Mar 04, 2015 1:26 am
by RealSmanly
Ok so whenever I go to my IP Address(EX: 62.210.185.22) it will show the last added domain.

I've created a domain named test1 and went to 62.210.185.22 http://puu.sh/glpXz/f82c97ec00.png
then I created another domain named test2 and went again to 62.210.185.22 http://puu.sh/glq32/0d608a2f62.png
(If I go to test1.alpha.website.com or whatever.alpha.website.com it will show the correct page)

I would like to change it so whenever you go the the IP Address it would take you to the panel or a welcome page and NOT a domain that is hosted.

TLDR: Whenever I create a web domain the IP Address shows the last created domain. How do I make it show the same thing always or have it redirect to the panel on port 8083 .

Note: I'm using an Assigned domain with the proper A & CNAME created.
The websites are all using the default Apache & Nginx templates.

Re: Multiple Domains on 1 IP Address showing last created do

Posted: Wed Mar 04, 2015 4:25 pm
by skurudo
When you use one account for your domains, apache create one config file and new domains added in this file. If you think, it's not normal, please add a bug - https://bugs.vestacp.com/

Re: Multiple Domains on 1 IP Address showing last created do

Posted: Wed Mar 04, 2015 8:06 pm
by RealSmanly
skurudo wrote:When you use one account for your domains, apache create one config file and new domains added in this file. If you think, it's not normal, please add a bug - https://bugs.vestacp.com/
There are multiple accounts with multiple domains. Whenever a domain is created on any account the latest created domain would be shown on the IP Address.

Re: Multiple Domains on 1 IP Address showing last created do

Posted: Sat Mar 28, 2015 9:00 am
by skurudo
RealSmanly wrote:There are multiple accounts with multiple domains. Whenever a domain is created on any account the latest created domain would be shown on the IP Address.
Return your default doman or make one domain default

/list/ip/ - already tryed this? Make default domain for IP?

Re: Multiple Domains on 1 IP Address showing last created do

Posted: Sun Mar 29, 2015 6:05 pm
by croc122
I'm having the same problem.

I have four websites hosted on my VPS all running from 1 IP address, but it is not looking in the correct directory for each website. I have not found a way to change which directory each website is stored in.

Re: Multiple Domains on 1 IP Address showing last created do

Posted: Sun Mar 29, 2015 6:59 pm
by skurudo
croc122 wrote:I'm having the same problem.
I have four websites hosted on my VPS all running from 1 IP address, but it is not looking in the correct directory for each website. I have not found a way to change which directory each website is stored in.
You have not the same problem, man ;) On 1 IP can be many-many-many sites, if you access with IP you can see only one, obviously, but with domain-name - nope, you can see each site.
croc122 wrote:have not found a way to change which directory each website is stored in
Why do you need change default directories?

Re: Multiple Domains on 1 IP Address showing last created do

Posted: Sun Mar 29, 2015 7:48 pm
by croc122
All of my websites are showing the same exact page no matter which domain I type into my browser. Each website is supposed to look completely different.

Re: Multiple Domains on 1 IP Address showing last created do

Posted: Sun Mar 29, 2015 8:35 pm
by skurudo
croc122 wrote:All of my websites are showing the same exact page no matter which domain I type into my browser. Each website is supposed to look completely different.
Need specific examples and what did you do, when added domain (step by step)? If you just add one domain and nothing more or added other as alias, it'll be a bit wrong. But may be it's browser cache? Cache make some jockes with yours browsers.

Re: Multiple Domains on 1 IP Address showing last created do

Posted: Sun Mar 29, 2015 9:38 pm
by croc122
For example, my Minecraft server's website www.clubzebula.com is displaying the Xenforo forum that is also hosted on my VPS which should have the domain www.animalsvsmonsters.com.

Here is all the code found in the apache2.conf located at /home/admin/web/conf

Code: Select all

<VirtualHost 192.99.244.195:80>

    ServerName animalsvsmonsters.com
    ServerAlias www.animalsvsmonsters.com animalsvsmonsters-com.animalsvsmonsters.com
    ServerAdmin [email protected]
    DocumentRoot /home/admin/web/animalsvsmonsters.com/public_html
    ScriptAlias /cgi-bin/ /home/admin/web/animalsvsmonsters.com/cgi-bin/
    Alias /vstats/ /home/admin/web/animalsvsmonsters.com/stats/
    Alias /error/ /home/admin/web/animalsvsmonsters.com/document_errors/
    #SuexecUserGroup admin admin
    CustomLog /var/log/apache2/domains/animalsvsmonsters.com.bytes bytes
    CustomLog /var/log/apache2/domains/animalsvsmonsters.com.log combined
    ErrorLog /var/log/apache2/domains/animalsvsmonsters.com.error.log
    <Directory /home/admin/web/animalsvsmonsters.com/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory /home/admin/web/animalsvsmonsters.com/stats>
        AllowOverride All
    </Directory>

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid admin admin
        RGroups www-data
    </IfModule>
    <IfModule itk.c>
        AssignUserID admin admin
    </IfModule>

    Include /home/admin/conf/web/apache2.animalsvsmonsters.com.conf*

</VirtualHost>

<VirtualHost 192.99.244.195:80>

    ServerName clubzebula.com
    ServerAlias www.clubzebula.com clubzebula-com.clubzebula.com
    ServerAdmin [email protected]
    DocumentRoot /home/admin/web/clubzebula.com/public_html
    ScriptAlias /cgi-bin/ /home/admin/web/clubzebula.com/cgi-bin/
    Alias /vstats/ /home/admin/web/clubzebula.com/stats/
    Alias /error/ /home/admin/web/clubzebula.com/document_errors/
    #SuexecUserGroup admin admin
    CustomLog /var/log/apache2/domains/clubzebula.com.bytes bytes
    CustomLog /var/log/apache2/domains/clubzebula.com.log combined
    ErrorLog /var/log/apache2/domains/clubzebula.com.error.log
    <Directory /home/admin/web/clubzebula.com/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory /home/admin/web/clubzebula.com/stats>
        AllowOverride All
    </Directory>

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid admin admin
        RGroups www-data
    </IfModule>
    <IfModule itk.c>
        AssignUserID admin admin
    </IfModule>

    Include /home/admin/conf/web/apache2.clubzebula.com.conf*

</VirtualHost>

<VirtualHost 192.99.244.195:80>

    ServerName clubzebula.us
    ServerAlias www.clubzebula.us clubzebula-us.clubzebula.com
    ServerAdmin [email protected]
    DocumentRoot /home/admin/web/clubzebula.us/public_html
    ScriptAlias /cgi-bin/ /home/admin/web/clubzebula.us/cgi-bin/
    Alias /vstats/ /home/admin/web/clubzebula.us/stats/
    Alias /error/ /home/admin/web/clubzebula.us/document_errors/
    #SuexecUserGroup admin admin
    CustomLog /var/log/apache2/domains/clubzebula.us.bytes bytes
    CustomLog /var/log/apache2/domains/clubzebula.us.log combined
    ErrorLog /var/log/apache2/domains/clubzebula.us.error.log
    <Directory /home/admin/web/clubzebula.us/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory /home/admin/web/clubzebula.us/stats>
        AllowOverride All
    </Directory>

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid admin admin
        RGroups www-data
    </IfModule>
    <IfModule itk.c>
        AssignUserID admin admin
    </IfModule>

    Include /home/admin/conf/web/apache2.clubzebula.us.conf*

</VirtualHost>

<VirtualHost 192.99.244.195:80>

    ServerName croc122.me
    ServerAlias www.croc122.me croc122-me.clubzebula.com
    ServerAdmin [email protected]
    DocumentRoot /home/admin/web/croc122.me/public_html
    ScriptAlias /cgi-bin/ /home/admin/web/croc122.me/cgi-bin/
    Alias /vstats/ /home/admin/web/croc122.me/stats/
    Alias /error/ /home/admin/web/croc122.me/document_errors/
    #SuexecUserGroup admin admin
    CustomLog /var/log/apache2/domains/croc122.me.bytes bytes
    CustomLog /var/log/apache2/domains/croc122.me.log combined
    ErrorLog /var/log/apache2/domains/croc122.me.error.log
    <Directory /home/admin/web/croc122.me/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory /home/admin/web/croc122.me/stats>
        AllowOverride All
    </Directory>

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid admin admin
        RGroups www-data
    </IfModule>
    <IfModule itk.c>
        AssignUserID admin admin
    </IfModule>

    Include /home/admin/conf/web/apache2.croc122.me.conf*

</VirtualHost>

<VirtualHost 192.99.244.195:80>

    ServerName bronycroc.me
    ServerAlias www.bronycroc.me bronycroc-me.bronycroc.me
    ServerAdmin [email protected]
    DocumentRoot /home/admin/web/bronycroc.me/public_html
    ScriptAlias /cgi-bin/ /home/admin/web/bronycroc.me/cgi-bin/
    Alias /vstats/ /home/admin/web/bronycroc.me/stats/
    Alias /error/ /home/admin/web/bronycroc.me/document_errors/
    #SuexecUserGroup admin admin
    CustomLog /var/log/apache2/domains/bronycroc.me.bytes bytes
    CustomLog /var/log/apache2/domains/bronycroc.me.log combined
    ErrorLog /var/log/apache2/domains/bronycroc.me.error.log
    <Directory /home/admin/web/bronycroc.me/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory /home/admin/web/bronycroc.me/stats>
        AllowOverride All
    </Directory>

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid admin admin
        RGroups www-data
    </IfModule>
    <IfModule itk.c>
        AssignUserID admin admin
    </IfModule>

    Include /home/admin/conf/web/apache2.bronycroc.me.conf*

</VirtualHost>

<VirtualHost 192.99.244.195:80>

    ServerName speedycrocdesign.com
    ServerAlias www.speedycrocdesign.com speedycrocdesign-com.speedycrocdesign.com
    ServerAdmin [email protected]
    DocumentRoot /home/admin/web/speedycrocdesign.com/public_html
    ScriptAlias /cgi-bin/ /home/admin/web/speedycrocdesign.com/cgi-bin/
    Alias /vstats/ /home/admin/web/speedycrocdesign.com/stats/
    Alias /error/ /home/admin/web/speedycrocdesign.com/document_errors/
    #SuexecUserGroup admin admin
    CustomLog /var/log/apache2/domains/speedycrocdesign.com.bytes bytes
    CustomLog /var/log/apache2/domains/speedycrocdesign.com.log combined
    ErrorLog /var/log/apache2/domains/speedycrocdesign.com.error.log
    <Directory /home/admin/web/speedycrocdesign.com/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory /home/admin/web/speedycrocdesign.com/stats>
        AllowOverride All
    </Directory>

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid admin admin
        RGroups www-data
    </IfModule>
    <IfModule itk.c>
        AssignUserID admin admin
    </IfModule>

    Include /home/admin/conf/web/apache2.speedycrocdesign.com.conf*

</VirtualHost>


Re: Multiple Domains on 1 IP Address showing last created do

Posted: Sun Mar 29, 2015 9:42 pm
by skurudo
Something not right on your vps. Have you tryed Rebuild your sites?

Can you show nginx.conf? Nearly with apache2.conf