Subdomain of hostname after account creation
Hello,
I want to add by default for all new accounts an apache Virtualhost Alias $username.$hostname pointing to all new accounts in order for the clients to have access to their site even when their domain it's not pointed to the server.
Thank you for your help
Regards.
-
[QUOTE="Gast"n, post: 2443715, member: 783141">2. I want to add by default for all new accounts an apache Virtualhost Alias $username.$hostname pointing to all new accounts in order for the clients to have access to their site even when their domain it's not pointed to the server.
Hello, I moved this question to it's own thread. You could develop a script that creates a parked domain (domain alias) for an account and then setup a post Create::Account hook that automatically runs the script after an account is created. Here are some documents that will help you get started if you choose to go with this method: cPanel API 2 Functions - Park::park - Software Development Kit - cPanel Documentation Guide to Standardized Hooks - Whostmgr Functions - Software Development Kit - cPanel Documentation You'd also need to enable the "Allow users to park subdomains of the server"s hostname" option under the "Domains" tab in "WHM >> Tweak Settings". Thank you.0
Please sign in to leave a comment.
Comments
1 comment