Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member GeekPatrolMille's Avatar
    Join Date
    Mar 2004
    Location
    McKinney, Texas, USA
    Posts
    84

    Question Wildcard Subdomains via API

    The situation is a sales organization who wishes to have a server alias of *.domain.com so they can process any specialized site like agentname.domain.com on the fly.

    Can I write PHP script that allows for a cPanel user account to create and delete subdomains by using an API call?

    All that I have read so far indicate they would not be restricted to their own domain, is this correct?

    If I am mistaken and this is possible, can anyone give an example of how to do this please. Much gratitude in advance for your assistance...

    Thanks,-greg
    Gregory A. Miller
    AGBSM Networks, LLC
    McKinney, Texas
    469-247-1444

    removespam.gmiller@agbsm.net

  2. #2
    Member GeekPatrolMille's Avatar
    Join Date
    Mar 2004
    Location
    McKinney, Texas, USA
    Posts
    84

    Default

    Found a simpler way to do this based on the documentation found here.

    cPanel - The Easy Apache Configuration System - Adding Custom Directives to httpd.conf

    I created the folder structure as follows:
    /usr/local/apache/conf/userdata/std/2/domain/domainname.net/

    in this folder I placed a file called "wildcard_subdomains.conf"

    In the httpd.conf file I uncommented the last line of the VirtualHost directive to Include *.conf from the folder above.

    restarted apache and it all worked fine.
    Gregory A. Miller
    AGBSM Networks, LLC
    McKinney, Texas
    469-247-1444

    removespam.gmiller@agbsm.net

Similar Threads & Tags
Similar threads

  1. wildcard subdomains and normal subdomains at the same time
    By mojoinst in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-09-2009, 08:53 PM
  2. Wildcard subdomains
    By royli57 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-02-2005, 09:10 AM
  3. Wildcard subdomains
    By imagic in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-12-2003, 02:33 PM
  4. wildcard subdomains
    By eMark in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-14-2003, 08:47 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube