The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Setup Mapping -- Where is it stored?

Discussion in 'General Discussion' started by anup123, May 28, 2005.

  1. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Under DNS Functions, Setup Mapping (Last Icon in that menu) --> Where are the details stored? Which filename to be precise?

    TIA
    Anup
     
  2. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    No One using this feature ?
    I am using it extensively, using mod_vhost_alias with domain mapped to subdomain through this but really can't trace where the entries are going. So need information on this...

    TIA
    Anup
     
  3. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    The last icon I see is
    Setup/Edit Domain Forwarding

    That information is stored in /var/named/somedomain.com.db and in httpd.conf and in the /var/cpanel/users/userid file. Not sure if anywhere else as well.
     
  4. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    /var/named/somedomain.com.db Has the detail of the mapping IP
    httpd.conf has the enbtry for the IP has included by above
    /var/cpanel/users do not have the username

    Let me clarify.

    I add a dns zone

    somedomain.tld IP =xx.xx.xxx.221 <-- this is the IP on which all Forwarding Mapping is set (as prompted by WHM when the First Time Setup was done) for which httpd.conf has following:

    <VirtualHost xx.xx.xxx.221>
    BytesLog domlogs/xx.xx.xxx.221-bytes_log
    ServerName xx.xx.xxx.221
    ServerAdmin root@localhost
    DocumentRoot /dev/null
    ScriptAliasMatch .* /usr/local/cpanel/cgi-sys/domainredirect.cgi
    </VirtualHost>


    Then i click on the last icon under DNS and do the following:

    somedomain.tld ==> http://www.someusername.primarydomain.tld
    *.somedomain.tld ==> http://www.spmeusername.primarydomain.tld

    primarydomain.tld's zone file has a wildcarded DNS pointing to xx.xx.xxx.213

    typing http://somedomain.tld or http://www.somedomain.tld takes to the subdomain site

    The subdomain runs through mod_vhost_alias block in httpd.conf which looks like this:

    <VirtualHost *:80>
    UseCanonicalName Off
    VirtualDocumentRoot /home/something/%-1/%-2/%-3
    VirtualScriptAlias /home/something/%-1/%-2/%-3/cgi-bin
    User something
    Group something
    php_flag engine off
    </VirtualHost>

    No cpanel user is created anywhere for somedomain.tld. user something group something is created from ssh and common for all accounts hosted in such a way.

    Each somedomain.tld user has access to ftp space with auth against data stored in MySQL (using modified pure-ftpd of cpanel to also have Mysql Auth scheme in addition to the default one)

    What i was searching for and am looking for is where is the following data stored?

    somedomain.tld ==> http://www.someusername.primarydomain.tld
    *.somedomain.tld ==> http://www.someusername.primarydomain.tld

    I could not find this info anywhere in the locations specified.

    Any Clue?

    TIA
    Anup
     
    #4 anup123, May 29, 2005
    Last edited: May 29, 2005
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Just had a play and found it in:

    /var/cpanel/domainmap

    If that is what you are after?
     
  6. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Thanks.
    That's it.

    Anup
     
Loading...

Share This Page