Franki
06-06-2001, 07:58 PM
The official Cobalt site (http://www.cobalt.com) says that the server can host up to 200 domains. This number includes the sub-domains or the top-level domains only?
![]() | View Full Version : Sub-domains Franki 06-06-2001, 07:58 PM The official Cobalt site (http://www.cobalt.com) says that the server can host up to 200 domains. This number includes the sub-domains or the top-level domains only? Dim8 06-06-2001, 08:01 PM A cobalt server can hold up to 200 sites, which is both domains and subdomains. However someone had a way of creating a subdomain w/o using one of your 200 sites.. not sure if anyone remembers... steve93138 06-07-2001, 03:09 PM Originally posted by Dim8 A cobalt server can hold up to 200 sites, which is both domains and subdomains. However someone had a way of creating a subdomain w/o using one of your 200 sites.. not sure if anyone remembers... I'd love to hear how this can be accomplished... :look: UmBillyCord 06-07-2001, 04:37 PM You can do it the same way I believe the CPanel does it - changing the httpd.conf. CPanel scripted it so customers can do this themselves. If cobalt customers want to offer this, we have only been able to do it this way 1) Add the A Record. 2) Add this to the httpd.conf and restart the httpd ------------------------------------------------ <VirtualHost xxx.xxx.xxx.xxx> ServerName sub.domain.com ServerAdmin admin DocumentRoot /home/sites/www.domain.com/sub-domains/test/ AddHandler cgi-wrapper .cgi AddHandler cgi-wrapper .pl AddHandler server-parsed .shtml AddType text/html .shtml </VirtualHost> ------------------------------------------------ This will make http://sub.domain.com go to the root web. Dim8 06-07-2001, 04:45 PM Interesting.. so you could create a user under your domain (www.yourdomain.com/~username) than point the sub-domain to the /web folder for that username and than the user can FTP to their space and such... If anyone has a script that can do it to save us time.. that would be great. =) Thanks UmBillyCord, you've been a great help with questions regarding Cobalts. UmBillyCord 06-07-2001, 05:12 PM Don't see why not. This would then allow for your siteadmin to jail their users ftp privledges. As far as a script, we were working on that too. Now that CPanel host push "Unlimited Subdomains", Cobalt guys need to keep pace. The tough part is allowing your customers to manage these SD's so you do not need to do it for them. In order for a script like this to work, the script will have to have root access and not compromise security. JeremyL 06-14-2001, 09:22 PM Does Cobalt run a form of apache? If so and the mod_rewrite module is installed just Open your apache http.conf configuration file and add the following to the bottom: ========================= Rewritelog logs/rewrite.log RewritelogLevel 9 RewriteMap lowercase int:tolower RewriteEngine on RewriteCond ${lowercase:%{HTTP_HOST}} !^$ RewriteCond ${lowercase:%{HTTP_HOST}} !^www\.hf-online.com$ RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.|)([^.]+)\.hf-online\.com$ RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C] RewriteRule ^(www\.|)([^.]+)\.hf-online\.com(.*) /users/$2$3 [L] RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.|)[^.]+\.[^.]+\.hf-online\.com$ RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C] RewriteRule ^(www\.|)([^.]+)\.([^.]+)\.hf-online\.com(.*) /users/$3/$2$4 [L] ========================= Then they can use any sub directory as a subdomains It will need a few tweaks with the domains and stuff but thats how the Home Free script makes it's sub directories into subdomains. See: http://faq.solutionscripts.com/docs/homefree/tips/subdomains.html WreckRman2 06-14-2001, 10:02 PM So does this only for for one domain? Dim8 06-15-2001, 08:52 AM I believe that code is for 1 domain only. You'll have to add it to all the domain's vhosts. That code was originally created for people using the homefree script, so they could provide subdomain hosting. =) But it's not a bad idea. JeremyL 06-15-2001, 12:08 PM Yes, I believe you have to add it for each domain, but you only have to add it once, so then after adding it they have unlimited sub domains... Cael 06-16-2001, 05:15 AM AT LAST !!! I was looking everywhere for this code which utilize mod_rewrite for the redirection for quite some time. Thank you very much! :stickout Lantins 06-16-2001, 10:33 AM Hey, I am making my own scriped for my users to add subdomains etc, I tell you more when its working ;) Any way, onto this 200 site thing, Corbalt "say" you can have 200 sites, so its realy just there GUI stopping you adding more then 200 site, there for there is a magical 200 number in there code :) If you look around u can find it, allthow i not added 200 site to test it yet :cool: But i would not recomend alot of big sites on the RAQs. Thats my 2p Luke Antins Cael 06-16-2001, 10:51 AM Hey hey, mail me when it's done. I am very interested with it. :) Lantins 06-16-2001, 11:52 AM Will do, but it will take some time, i am curently making a redirection scriped so users can change the page there url redirects to but keeping the same url :) Luke Antins TheGman 06-16-2001, 06:00 PM Hey, I am making my own scriped for my users to add subdomains etc, I tell you more when its working Please also add me to your list when your are done... George Cael 06-17-2001, 12:44 AM I do think that there should be a thread, where everyone attach the script they made to it. I noticed that there are a few script attached to the forum. And I guess making all of them in one thread might be convenient for everyone. Maybe one for scripts already made, and another for scripts which are still in development. :) How does that sounds? Just my 2p. serv 07-04-2001, 02:21 AM Originally posted by JeremyL Does Cobalt run a form of apache? If so and the mod_rewrite module is installed just Open your apache http.conf configuration file and add the following to the bottom: ========================= Rewritelog logs/rewrite.log RewritelogLevel 9 RewriteMap lowercase int:tolower RewriteEngine on RewriteCond ${lowercase:%{HTTP_HOST}} !^$ RewriteCond ${lowercase:%{HTTP_HOST}} !^www\.hf-online.com$ RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.|)([^.]+)\.hf-online\.com$ RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C] RewriteRule ^(www\.|)([^.]+)\.hf-online\.com(.*) /users/$2$3 [L] RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.|)[^.]+\.[^.]+\.hf-online\.com$ RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C] RewriteRule ^(www\.|)([^.]+)\.([^.]+)\.hf-online\.com(.*) /users/$3/$2$4 [L] ========================= Then they can use any sub directory as a subdomains It will need a few tweaks with the domains and stuff but thats how the Home Free script makes it's sub directories into subdomains. See: http://faq.solutionscripts.com/docs/homefree/tips/subdomains.html (sorry for my english) If i use this script... I will spent many of my CPU power ? Thanks Chicken 07-04-2001, 01:18 PM No, this is just a URL rewrite basically. |