I've a little how-to on this....
create:
/home/httpd/vhosts/XXXXXXX.XXX/conf/vhost.conf
SAMPLE:
ServerName ALIAS.XXX
ServerAlias *.ALIAS.XXX
DocumentRoot /home/httpd/vhosts/XXXXXXX.XXX/httpdocs
<Directory /home/httpd/vhosts/XXXXXXX.XXX/httpdocs>
AddType application/x-httpd-php .php .php4 .php3 .phtml
php_admin_flag engine on
</Directory>
execute:
/usr/local/psa/admin/sbin/websrvmng
/etc/rc.d/init.d/httpd restart
edit /var/qmail/control/rcpthosts
add ALIAS.XXX
editar /var/qmail/control/virtualdomains
adicionar ALIAS.XXX:[virtual#id]
the "virtual#id" correspond's to domain ID in the same file
Restart services:
#/usr/local/psa/admin/sbin/websrvmng
#service httpd restart
#service qmail restart
Legend:
XXXXXXX.XXX = domain name
ALIAS.XXX = the alias domain name that you want to add
I suggest you keep record of this, because, when migrating to other plesk box, this settings will be lost
Regards |