Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004
    Location
    Bay Area -USA
    Posts
    1,740

    Adding subdomains with diff document roots?

    IN CPANEL, is there a way to add a subdomain thats not for the main document root.

    IE normally subdomains added in cpanel go to /home/user/public_html/<sub_domain name here>

    is there a way to change it so that it would be
    /home/user/public_html/subs/<sub_domain name here>



    Thanks for any help.

    *edit: I put this in the programming because im doing it using php*
    PHP Code:
    $output fopen ("http://$login:$pass@www.$domain:2082/frontend/x/subdomain/doadddomain.html?domain=$subdomain&rootdomain=$domain""r");
        
    $output fopen ("http://$login:$pass@www.$domain:2082/frontend/x/ftp/doaddftp.html?login=$subdomain&password=$ftppass&homedir=$homedir""r"); 
    Last edited by VolkNet; 06-21-2005 at 10:37 PM.
    <<< Please see Forum Guidelines for signature setup. >>>

  2. #2
    Join Date
    Jun 2004
    Location
    Bay Area -USA
    Posts
    1,740
    I tried changing the $homedir to something else - normally it's the same as the subdomain but still no luck.
    <<< Please see Forum Guidelines for signature setup. >>>

  3. #3
    Join Date
    Feb 2005
    Location
    Norway
    Posts
    391
    "/frontend/x/subdomain/doadddomain.html?rootdomain=user.YourDomain.com&domain=SubdomainToAdd

    tried this? It should add subdomains as f.ex; user.members.domain.com, or domain.com/members/user
    Above is untested, but I have got it working in another script ^_^ (that subdomain in the example "user" must already exist and have the needed subdomains available as resources)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •