FS::svc_www - Object methods for svc_www records
use FS::svc_www;
$record = new FS::svc_www \%hash; $record = new FS::svc_www { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
$error = $record->suspend;
$error = $record->unsuspend;
$error = $record->cancel;
An FS::svc_www object represents an web virtual host. FS::svc_www inherits from FS::svc_Common. The following fields are currently supported:
Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the hash method.
The additional fields pkgnum and svcpart (see the FS::cust_svc manpage) should be defined. An FS::cust_svc record will be created and inserted.
If the configuration values (see the FS::Conf manpage) apachemachine, and apacheroot exist, the command:
mkdir $apacheroot/$zone; chown $username $apacheroot/$zone; ln -s $apacheroot/$zone $homedir/$zone
$zone is the DNS A record pointed to by recnum $username is the username pointed to by usersvc $homedir is that user's home directory
is executed on apachemachine via ssh. This behaviour can be surpressed by setting $FS::svc_www::nossh_hack true.
$Id: svc_www.html,v 1.1 2001-07-30 07:36:03 ivan Exp $
the FS::svc_Common manpage, the FS::Record manpage, the FS::domain_record manpage, the FS::cust_svc manpage, the FS::part_svc manpage, the FS::cust_pkg manpage, schema.html from the base documentation.
$Log: svc_www.html,v $
Revision 1.1 2001-07-30 07:36:03 ivan
templates!!!
Revision 1.4 2001/04/22 01:56:15 ivan get rid of FS::SSH.pm (became Net::SSH and Net::SCP on CPAN)
Revision 1.3 2000/11/22 23:30:51 ivan tyop
Revision 1.2 2000/03/01 08:13:59 ivan compilation bugfixes
Revision 1.1 2000/02/03 05:16:52 ivan beginning of DNS and Apache support