Script For setting Up Subdomains and FTP.....

Status
Not open for further replies.

jerxs

New member
Jun 24, 2006
1,806
24
0
North East PA
Id like to allow members on one of my forums to set up their own little space on the web. Is there an automated script out there that allows users to choose prefered subdomain, create website using some sort of WYSIWYG editor? and so on......


thanks Jer
 


Hey Jerx - what forum technology are you using? phpbb? vbulletin? Is the foum located at domain.com/forum/ or is at your root? What you could do is install something like BlogHoster or Drupal, that would give you a membership based-system with the ability to have blogs, posts/pages, etc built-in.
 
Just an FYI It's against vbulletin's TOS to allow sub forums to members.

It's considered a new site and would require a new license for each.
 
mod_rewrite can do it for you

Code:
RewriteEngine On
RewriteRule ^/?([a-z]+).example.com/?([a-z]+)$ www.example.com/$1/$2 [NC, L]

that's wrong, but it's something like that...
 
mod_rewrite can do it for you

Code:
RewriteEngine On
RewriteRule ^/?([a-z]+).example.com/?([a-z]+)$ www.example.com/$1/$2 [NC, L]
that's wrong, but it's something like that...

You'll have to have wildcard DNS set up for this to work, or else the mod_rewrite script won't get invoked.
 
you set a wildcard subdomains in your site's dns records and apache conf
NS settings:
*.yourdomain.com IN CNAME yourdomain.com.

Apache server settings:
ServerName yourdomain.com
ServerAlias *.yourdomain.com

than in your htaccess file you put the rewrite
 
Status
Not open for further replies.