Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Zone templates and small problem

Discussion in 'General Discussion' started by nemeek, Oct 12, 2006.

  1. nemeek

    nemeek Member

    Joined:
    Oct 5, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Hi, i have a question with the zone templates:

    When i create an account i use this template:

    ; cPanel %cpversion%
    ; Zone file for %domain%
    $TTL %ttl%
    @ %nsttl% IN SOA %nameserver%. %rpemail%. (
    %serial% ; serial, todays date+todays
    86400 ; refresh, seconds
    7200 ; retry, seconds
    3600000 ; expire, seconds
    86400 ) ; minimum, seconds

    %domain%. %nsttl% IN NS %nameserver%.
    %domain%. %nsttl% IN NS %nameserver2%.
    %domain%. %nsttl% IN NS %nameserver3%.
    %domain%. %nsttl% IN NS %nameserver4%.

    %nameserverentry%. IN A %nameservera%
    %nameserverentry2%. IN A %nameservera2%
    %nameserverentry3%. IN A %nameservera3%
    %nameserverentry4%. IN A %nameservera4%

    %domain%. IN A %ip%

    localhost.%domain%. IN A 127.0.0.1

    %domain%. IN MX 0 %domain%.

    mail IN CNAME %domain%.
    www IN CNAME %domain%.
    ftp IN A %ftpip%

    stats IN A %ftpip%
    webmail IN A %ftpip%
    www.stats IN A %ftpip%
    www.webmail IN A %ftpip%


    Well, the subdomains stats and webmail work, but it dont redirige to stats / webmail folders in the account. How can i make that the subdomain redirige to folder on user account?

    I want that it make a subdomain how when you make a subdomain from cpanel.

    Sorry for my english

    Can somebody help me?


    Really Thanks!
     
  2. @home

    @home Well-Known Member

    Joined:
    Nov 5, 2003
    Messages:
    121
    Likes Received:
    2
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    The stats are only visible in Cpanel.
    Webmail has already a redirect. http://thedomain.com/webmail
     
  3. krava

    krava Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    You can create a symlink from root of public_html to ../tmp/webalizer/. Additionally you need to change permissions of the folder tmp and webalizer to 755 and you will be able to access your webalizer stats using:
    http://stats.domain.com
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. nemeek

    nemeek Member

    Joined:
    Oct 5, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice