Hi all,
This is a small tutorial about doing it
Add the following in DNS (or add it in the default template, as you wish):
*.domain.tld. A vps_id_address
And the best part is the following!
Access by SSH and type the comand (1 line only),
it replaces "ServerAlias www." with "ServerAlias *." on every website config file of .com's, in the VPS!
Code:find /var/www/vhosts/*.com -iname httpd.include -type f -exec sed -i 's/ServerAlias www./ServerAlias *./' {} \;
I love being lazy![]()


LinkBack URL
About LinkBacks




Reply With Quote


Bookmarks