subdomains

magmall

Verified User
Joined
Jun 25, 2004
Messages
27
Location
los angeles
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?
 
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
 
subdomains upload script

Which API. My programmers can write in php. So that is cool. I just want to tell them where to look.
 
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?
 
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 for more info on server limits.

John
 
is there a limit on subdomains before performance slows down

Have you found that performance slows down if there are over 1,000 subdomains or 5,000 subdomains on a box.
 
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
 
subdomain followup

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)
 
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
 
subdomain

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?)
 
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
 
Back
Top