Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 22nd February 2007, 00:27
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 7 Times in 6 Posts
Question Is there a Script to add Multiple Domains (websites) to ISPCONFIG???

Hi All,

I've been using ISPconfig for a few months on a server with 10 domains.

Now, I want to put more domains on the server - up to 250. Don't worry the server can handle it

Doing this manually will take A LONG time. So I'm wondering if a script could be created to automatically add websites to ISPconfig given a .txt list of domains.

I'm familiar with PERL and PHP and believe it could be possible, based on the following entry from the ISPconfig vhosts folder for httpd.conf (see below)...

I know it is possible to use PERL to recreate the following httpd entry and print to the httpd.conf or vhosts file. Website accounts can be incremented with a "foreach" loop and $x++ use, and website domains can be picked from the starting .txt list of domains using REGEX and substituting them into a vhost template form with tokens where each unique website value should be placed.

Is this possible with ISPconfig? OR, if not with ISPconfig, could such a script create domains that would function on the same server OUTSIDE of ISPconfig?

Many thanks for any ideas........

Code:
######################################
# Vhost: www.xxxxxxx.net:80
######################################
#
#
<VirtualHost 64.xxx.xxx.247:80>
ServerName www.xxxxx.net:80
ServerAdmin webmaster@xxxxx.net
DocumentRoot /var/www/web1/web
ServerAlias xxxxx.net
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias  /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
</VirtualHost>
#
#
#
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple email account with ispconfig and roundcube statiic Installation/Configuration 2 5th November 2006 09:50
how to stop ispconfig add some lines Salvis Installation/Configuration 2 30th July 2006 14:36
Script for add new vmail users 9evill HOWTO-Related Questions 1 5th July 2006 09:05
Multiple domains & where to search suy General 4 19th September 2005 23:14
Multiple domains jysse Installation/Configuration 2 10th August 2005 12:22


All times are GMT +2. The time now is 08:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.