Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-04-2004, 04:25 AM   #1
AdultNex
Confirmed User
 
Join Date: Feb 2003
Location: Bostonnnn
Posts: 8,985
Adding mass subdomains - Possible?

Is it possible to add like 200 subdomains to a domain using cPanel or some other solution VERY easily?
AdultNex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2004, 04:34 AM   #2
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
The easiest way for you would be to ask your host to do it

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2004, 04:34 AM   #3
Fake Nick
So Fucking Banned
 
Join Date: Jul 2004
Location: go troll goo!
Posts: 7,708
I spam google and love it !
Fake Nick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2004, 04:35 AM   #4
AdultNex
Confirmed User
 
Join Date: Feb 2003
Location: Bostonnnn
Posts: 8,985
Quote:
Originally posted by European Lee
The easiest way for you would be to ask your host to do it

Regards,

Lee
I'm on a dedicated server, so most likely, my host won't do it.
AdultNex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2004, 04:36 AM   #5
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Quote:
Originally posted by AdultNex
I'm on a dedicated server, so most likely, my host won't do it.
'Most likely'

If you dont ask, you 'most likely' will never find out ;)

Regards,


Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2004, 05:46 AM   #6
notjoe
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
Quote:
Originally posted by AdultNex
Is it possible to add like 200 subdomains to a domain using cPanel or some other solution VERY easily?
Use domain wildcards and *.domain.com can resolve to your IP
notjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2004, 01:04 PM   #7
AdultNex
Confirmed User
 
Join Date: Feb 2003
Location: Bostonnnn
Posts: 8,985
Quote:
Originally posted by notjoe
Use domain wildcards and *.domain.com can resolve to your IP
Won't quite work for me since I need each subdomain to be a unique website.
AdultNex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2004, 01:22 PM   #8
webair
Confirmed User
 
webair's Avatar
 
Industry Role:
Join Date: Feb 2002
Location: NYC, NY
Posts: 8,531
yes with webair's proprietary control panel
shoot me an e-mail and ill send you a demo
webair is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2004, 03:43 PM   #9
SplitInfinity
Confirmed User
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 3,047
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" \
}'
SplitInfinity is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.