Forums Sign Up Reply Search Statistics
HOW-TO setup PLESK GraFX Software Solutions - Forum / HOW-TO setup PLESK /

www-aliases on subdomains

 
Author AlleyKat
Forums Member
#1 Posted: 4 Nov 2005 22:57:30
Reply 
How do I add "www."-aliases to subdomains? Many still type www. in front of every address, so it's a good thing to have default on all subdomains.
Author Admin
Forums Member
#2 Posted: 6 Nov 2005 07:54:11
Reply 
Unfortunatelly I don't know, I know is covered somewhere on the PLESK forum. Try to see there.
Author Paulo
Forums Member
#3 Posted: 29 Jan 2006 02:20:49
Reply 
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
Author Admin
Forums Member
#4 Posted: 29 Jan 2006 11:33:38
Reply 
TX
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.