Newbie. Sites not resolving without vhost

harvald

New member
Joined
Feb 16, 2011
Messages
12
Hi all

I am new to DirectAdmin and currently running it on a VPS. I am the only user (admin) and have 4 ip's. 1 is obviously server ip and other 3 are running 1 site each. Problem is I can only get the domains to resolve by adding a vhost entry to httpd.conf.

<VirtualHost xxx.xx.xxx.xxx:80>
ServerName xxx.xx.xxx.xxx
DocumentRoot /home/admin/domains/xxxxxxx/public_html
</VirtualHost>

All the sites have the correct IP's allocated. How can I get around having to add the vhost entry for each domain? I want to run various domains per ip so the current solution wont work

Thanks
 
IP address is correct. I think it must be something within DirectAdmin that perhaps I have not set up correctly
 
So, I don't understand what is wrong with your domain.

You should add domain with the help of Directadmin Web GUI. Do not add it manually in shell. If you do not want to add domain in regular way, you can use DNS page on Admin Level to add domains.
 
Have just taken the vhost out to test and all I get now is blank page saying Apache is functioning normally
 
If I check custom httpd.confs all domains are listed with main server IP and not ip's assigned in DNS
 
I don't get you. How do you add domains? Please, be more specific. It would be better, if you provide us with some screen-shots.

If you add domain on user level directadmin as a regular domain, and it gets different IP, than it should get, then there's something wrong with your templates. Check with /usr/local/directadmin/data/templates/custom/ and here /usr/local/directadmin/data/templates/:

dns_aaaa.conf
dns_a.conf
dns_cname.conf
dns_mx.conf
dns_ns.conf
dns_srv.conf
dns_txt.conf
 
I add the sites at user level then go into DNS administration and change to the IP i want to use. I dont use my own nameservers

Couple of screenshots attached of DNS & IPs
 

Attachments

  • ips.jpg
    ips.jpg
    212.8 KB · Views: 43
  • site.jpg
    site.jpg
    251.3 KB · Views: 46
If I do assign the ip to admin I just get a page stating

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.
 
If you want assign the IP to user, which holds domain subliminalmess.co.cc, you should firstly assign it reseller (admin by default). Do not share it. Then change user's IP to that one.
 
I'm not sure, I understand you completely. I even do not understand, what exactly you want to get.

Nevertheless, It's not possible to assign any IP directly to any user, until it does not assigned to any reseller on IP manager page.

Account named Admin is both administrator and reseller.
 
The specific reason for the problem is that you haven't assigned an IP# to the domain. You've simply changed the DNS so the world looks at an unassigned IP# on your server.

The DirectAdmin-specific way to do what you want to do is to:

Add the IP# to DirectAdmin and to the Admin reseller, using the control panel.

Add users under the DirectAdmin admin reseller page, one user per IP#, setting up one user per domain/IP# combination.

For help:

http://www.site-helper.com/
http://admin.site-helper.com/
http://reseller.site-helper.com/

Jeff
 
Have done that and sites still not showing. Just this page

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.
 
if you wanna see the website connecting to the ip (ex. http://IP) you must assign the IP to the single user, not sharing. That mean that the IP will not be used to any other domain/user, so, be sure to have other IP if you need to use other websites.
 
Back
Top