Is it possible to add like 200 subdomains to a domain using cPanel or some other solution VERY easily?
Adding mass subdomains - Possible?
Collapse
X
-
The easiest way for you would be to ask your host to do it
Regards,
Lee -
'Most likely'Originally posted by AdultNex
I'm on a dedicated server, so most likely, my host won't do it.
If you dont ask, you 'most likely' will never find out ;)
Regards,
LeeComment
-
yes with webair's proprietary control panel
shoot me an e-mail and ill send you a demo

~ Webair Dedicated Cloud Servers™ ~ WEBAIR VSYS™ Virtual Hosting Platform ~ Superior CDN Network ~
~ Managed Dedicated hosting Specialists ~ DISCOUNT DOMAIN NAMES! ~ WEBAIR FUSION IO MANAGED CLOUD SERVERS! ~
ICQ: 243116321 - TWITTER - @WEBAIRINC - E-Mail: [email protected]Comment
-
Move your sites over here.... if you have a dedicated server here, whether you have a control panel or want it done manually, yes is the answer to "Will you add subdomains for me on my dedicated or virtual hosting account?".
:-)
What you should do is this....
make a list of the subdomains you want.... one at a time on a single line:
joe.blah.com
mary.blah.com
thebomb.blah.com
james.blah.com
boooyah.blah.com
lemonaid.blah.com
somethingspecial.blah.com
then, using a grep and gawk, make the httpd.conf file additions you need...
Put those in a file on your server. Name the file: domains.txt
then, put this script on your server....
#!/bin/sh
# Set IP to the IP of the virtual host IP they will share...
IP="216.188.82.251"
PWD=`pwd`
cat domains.txt | sort -u |gawk '{print "mkdir " $1 "; \
mkdir " $1 "/public_html; mkdir " $1 "/cgi-bin"}' > makeall.sh
chmod 0755 makeall.sh; ./makeall.sh
echo "NameVirtualHost '$IP'" >> /etc/httpd/conf/httpd.conf
cat domains.txt | sort -u | gawk '{ \
print "<VirtualHost '$IP'>\n" \
"DocumentRoot '$PWD'/" $1 "/public_html\n" \
"ScriptAlias /cgi-bin '$PWD'/" $1 "/cgi-bin\n" \
"ServerAlias " $1 " *." $1 "\n" \
"ServerName www." $1 "\n" \
"ErrorDocument 404 /404.html?\n" \
"</VirtualHost>\n\n" \
}' >> /etc/httpd/conf/httpd.conf
This will APPEND your httpd.conf file with the virtual domains you need.
To see what it will add without actually doing it, run it without the ending command... remove: >> /etc/httpd/conf/httpd.conf
#!/bin/sh
IP="216.188.82.251"
PWD=`pwd`
cat domains.txt | sort -u |gawk '{print "mkdir " $1 "; \
mkdir " $1 "/public_html; mkdir " $1 "/cgi-bin"}' > makeall.sh
chmod 0755 makeall.sh; ./makeall.sh
echo "NameVirtualHost '$IP'" >> /etc/httpd/conf/httpd.conf
cat domains.txt | sort -u | gawk '{ \
print "<VirtualHost '$IP'>\n" \
"DocumentRoot '$PWD'/" $1 "/public_html\n" \
"ScriptAlias /cgi-bin '$PWD'/" $1 "/cgi-bin\n" \
"ServerAlias " $1 " *." $1 "\n" \
"ServerName www." $1 "\n" \
"ErrorDocument 404 /404.html?\n" \
"</VirtualHost>\n\n" \
}'Comment

Comment