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.3 2002-01-29 17:42:46 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.