У меня установлена EHCP, поскольку она проста и полезна на сервере с несколькими учетными записями FTP и веб-сайтами. Тестирует только сервер.
Проблема: я могу получить доступ к * .avki.zgarnijlicke.pl, * .kierowca.zgarnijlicke.pl, но * .zgarnijlicke.pl не работает.
Мои конфиги:
а) шаблон Apache:
<pre>
#____________start of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________
# explanation {aciklama}</p>
<p><VirtualHost *>
ServerName {domainname}
ServerAlias www.{domainname}
# buraya aliaslar yazilacak..
{aliases}</p>
<pre><code> UseCanonicalName Off
DocumentRoot {homedir}/httpdocs
ScriptAlias /cgi-bin/ {homedir}/httpdocs/cgi-bin/
\# this combined log format is understandable by webalizer... some other formats are not recognised by webalizer.. thats why, specified here explicitly..
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined
php_admin_value open_basedir {homedir}
php_admin_value upload_tmp_dir {homedir}/phptmpdir
php_admin_value session.save_path {homedir}/phptmpdir
AccessFileName .htaccess
<Directory {homedir}>
AllowOverride all
</Directory>
{customhttp}
Имя_сервера веб-почты. {Имя домена}
ServerAlias mail. {Имя домена}
ServerAlias электронная почта. {Имя домена}
DocumentRoot / var / www / vhosts / ehcp / webmail
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined
php_admin_value open_basedir /var/www/vhosts/ehcp/webmail
php_admin_value upload_tmp_dir /var/www/vhosts/ehcp/webmail/data
php_admin_value session.save_path /var/www/vhosts/ehcp/webmail/data
ServerName cpanel. {Имя домена}
Панель ServerAlias. {Имя домена}
ServerAlias ehcp. {Имя домена}
ServerAlias cp. {Имя домена}
DocumentRoot / var / www / vhosts / ehcp /
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog /var/log/apache_common_access_log vhost_combined
php_admin_value open_basedir /var/www/vhosts/ehcp/
#____________ конец {domainname} __ paneluser: {panelusername} _reseller: {reseller} _id: {id} ____________
б) apache Псевдонимы:
*.zgarnijlicke.pl
*.avki.zgarnijlicke.pl
*.kierowca.zgarnijlicke.pl
в) DNS шаблон
$TTL 86400
@ IN SOA ns.{domainname}. {dnsemail} (
{serial} ; Serial
10800 ; Refresh
1200 ; Retry
86400 ; Expire
86400 ); Minimum</p>
<p>{domainname}. IN NS ns.{domainname}.
ns.{domainname}. IN A {dnsip}
ns1.{domainname}. IN A {dnsip}
ns2.{domainname}. IN A {dnsip}
dns.{domainname}. IN A {dnsip}
dns1.{domainname}. IN A {dnsip}
dns2.{domainname}. IN A {dnsip}
{domainname}. IN A {webip}
mail.{domainname}. IN A {mailip}
smtp.{domainname}. IN A {webip}
webmail.{domainname}. IN A {webip}
ftp.{domainname}. IN CNAME {domainname}.
www.{domainname}. IN CNAME {domainname}.
{domainname}. IN MX 10 mail.{domainname}.
{domainname}. IN TXT "v=spf1 a mx"</p>
<p>{customdns}
*.{domainname} 14400 IN A {domainname}