PDA

View Full Version : subdomains



magmall
06-25-2004, 05:30 PM
is there a way to upload 500 subdomains from a list (instead of typing them one by one) and have the DA system create all the files/folders?

DirectAdmin Support
06-26-2004, 01:30 PM
Hello,

Not right now. But you can write a little script which uses the API to do it if you know how to use php.

John

magmall
06-26-2004, 09:59 PM
Which API. My programmers can write in php. So that is cool. I just want to tell them where to look.

ctnchris
06-26-2004, 11:15 PM
http://www.directadmin.com/api.html#user_apis

magmall
06-27-2004, 08:02 PM
Got the API. Last question. Is there a way to tell DA to create the subdomains in a directory one level deeper than public_html. If I'm creating 500 subdomains, the public_html folder is going to be real crowded. Also, is there a limit to the number of subdomains on a server before it slows down Apache or the serving of pages?

DirectAdmin Support
06-28-2004, 09:40 AM
Hello,

You *could* change the subdomain depth by editing the virtual_host_sub.conf template ... but that would affect everyone. http://help.directadmin.com/item.php?id=2

Limit? there is no "upper limit".. but of course, the more you add, the slower it will get. Each subdomain is essentially another VirtualHost, which apache will consider a whole new domain. Also, depending if you have ssl enabled will double the number of VirtualHosts created. (off is better if you can).

See this link (http://www.directadmin.com/forum/showthread.php?threadid=3293) for more info on server limits.

John

magmall
05-17-2005, 06:24 PM
Have you found that performance slows down if there are over 1,000 subdomains or 5,000 subdomains on a box.

nobaloney
05-19-2005, 07:59 AM
1,000 ???

5,000 ???

How many domains would you put on a server?

As John pointed out, a subdomain is treated by apache the same way a domain is.

Jeff

magmall
05-19-2005, 08:08 AM
For search engine optimization purposes I want to have for one domain, an additional 1,100 subdomains covering each product individually. My question is if I did this for 4 or 5 similar sites would the server start slowing down because of all the subdomains? (I wouldn't be creating more directadmin user accounts though, just subdomains)

nobaloney
05-19-2005, 08:13 AM
It would certainly take it longer to restart, which it will do at least once a day, and once each time you add a subdomain.

As to would it take longer otherwise? I'd suggest reading the link John posted at the bottom of his post.

Don't believe for a second that you'll help search engine optimization with multiple subdomains pointing to the same IP#. In fact some search engines will penalize you.

However that's a different discussion for a different forum.

Jeff

magmall
05-19-2005, 08:32 AM
why would the server restart each day just because there are a lot of subdomains? do you have a different suggestion for the subdomain issue? Should i have another server with multiple IPs just for the subdomains since those are basically static pages and won't require php or mysql?

(Also i didn't know it restarts with each new subdomain addition. are you sure about that?)

nobaloney
05-19-2005, 06:09 PM
John wrote about httpd restarting within the past few days; I could be recollecting his post incorrectly; please check for yourself.

I'm not recommending anything. I specifically answered a specific question.

Do you want to know what I would do if I needed a website with thousands of subdomains? I'd manage it manually, or perhaps with Webmin.

Or perhaps with a custom script I wrote for it.

Because that way I could optimize everything I wanted to optimize to work the way I wanted it.

But...

Thousands of domains per server? Not for me.

Your mileage may of course vary.

Jeff