Zone templates and small problem

nemeek

Member
Oct 5, 2006
5
0
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!
 

@home

Well-Known Member
Nov 5, 2003
121
2
168
cPanel Access Level
Root Administrator
nemeek said:
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!
The stats are only visible in Cpanel.
Webmail has already a redirect. http://thedomain.com/webmail
 

krava

Well-Known Member
Sep 23, 2003
149
0
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