US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Feedback & Feature Requests

Notices

Reply
 
Thread Tools
Old 09-01-2004, 11:02 AM   #1
Member
 
Join Date: Jul 2004
Posts: 77
bakon
Send a message via ICQ to bakon
Default Problems with subdomains

Now when you enter a subdomain that no exists of a site that exists at the server it does goes ok.
For example:
mail.site.com goes to the first site declared on Apache (perhaps not "site.com")

1) Could that entry be created automatically when a site is added at the server?

2) Could it be done for any subdomain possible, so for example:
XXXXX.site.com goes to site.com

Thank you.
bakon is offline   Reply With Quote
Old 09-06-2004, 02:46 AM   #2
ISPsystem team
 
Join Date: Mar 2004
Posts: 98
Igor has disabled reputation
Default

just add XXXXX.site.com to site.com aliases,
DNS record will create automaticaly.
__________________
ISPsystem support team
Igor is offline   Reply With Quote
Old 09-06-2004, 12:37 PM   #3
Member
 
Join Date: Jul 2004
Posts: 77
bakon
Send a message via ICQ to bakon
Default

Quote:
Originally Posted by Igor
just add XXXXX.site.com to site.com aliases,
DNS record will create automaticaly.
Ok, but it has to be done for each site in the server manually (I have 140 sites in a server).

I asked to do it:
1) Automatically.
2) Done for any subdomain possible.

Thank you.
bakon is offline   Reply With Quote
Old 09-07-2004, 05:28 AM   #4
ISPsystem team
 
Join Date: Mar 2004
Posts: 98
Igor has disabled reputation
Default

you can use API for add xxxxxxxx.site.com alias to all your sites

example perl script for this task:
==============================================
#!/usr/bin/perl

@SITES = `fetch -qo - "http://localhost/manager/ispmgr?out=text&func=site"`;

foreach (@SITES) {
chomp;
$name = (split(/\s/))[0];
$site = (split(/=/, $name))[1];
print "$site\n";
$info = "";
@PROP = `fetch -qo - "http://localhost/manager/ispmgr?out=text&func=site.edit&elid=$site"`;
foreach(@PROP) {
chomp;
if (/alias=/) {
$_ .= " xxxxxxxx.$site";
}
$info .= "&$_";
}
system("fetch -qo - \"http://localhost/manager/ispmgr?out=text&func=site.edit&sok=yes$info\"");
}
__________________
ISPsystem support team
Igor is offline   Reply With Quote
Reply

Thread Tools

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


All times are GMT +2. The time now is 12:19 PM.