将子域的通配符与少数子域的通配符合并时出现问题

发布于 2024-09-07 03:39:41 字数 3827 浏览 2 评论 0原文

我安装了 EHCP,因为它在 FTP 帐户和网站很少的服务器上简单且有用。它仅测试服务器。

问题是:我可以访问 *.avki.zgarnijlicke.pl、*.kierowca.zgarnijlicke.pl 但 *.zgarnijlicke.pl 不起作用。

我的配置是: a) Apache 模板: <代码>

#____________start of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________
# explanation  {aciklama}

<虚拟主机*> 服务器名称 {域名} 服务器别名 www.{domainname} # buraya 别名 yazilacak.. {别名}

    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 &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined
    LogFormat &quot;%v:%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; 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

    &lt;Directory {homedir}&gt;
    AllowOverride all
    &lt;/Directory&gt;
    {customhttp}

<虚拟主机*> 服务器名称网络邮件.{域名} 服务器别名 mail.{domainname} ServerAlias email.{domainname}

DocumentRoot /var/www/vhosts/ehcp/webmail

    LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined
    LogFormat &quot;%v:%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; 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

;

<虚拟主机*> 服务器名称 cpanel.{域名} ServerAlias 面板.{domainname} 服务器别名 ehcp.{域名} ServerAlias cp.{domainname}

DocumentRoot /var/www/vhosts/ehcp/

    LogFormat &quot;%v:%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; vhost_combined
    CustomLog  /var/log/apache_common_access_log vhost_combined

    php_admin_value open_basedir /var/www/vhosts/ehcp/

#____________ {域名}结尾__paneluser:{panelusername}_经销商:{经销商}_id:{id}____________

b) apache 别名: <代码>

*.zgarnijlicke.pl
*.avki.zgarnijlicke.pl
*.kierowca.zgarnijlicke.pl

c) DNS 模板 <代码>

$TTL    86400
@       IN      SOA     ns.{domainname}. {dnsemail} (
                        {serial}    ; Serial
                        10800  ; Refresh
                        1200    ; Retry
                        86400 ; Expire
                        86400 ); Minimum

{域名}。 IN NS ns.{域名}。 ns.{域名}。在 {dnsip} 中 ns1.{域名}。在 {dnsip} 中 ns2.{域名}。在 {dnsip} 中 dns.{域名}。在 {dnsip} 中 dns1.{域名}。在 {dnsip} 中 dns2.{域名}。在 {dnsip} 中 {域名}。在 {webip} 中 邮件.{域名}。在 {mailip} 中 smtp.{域名}。在 {webip} 中 网络邮件.{域名}。在 {webip} 中 ftp.{域名}。在 CNAME {域名} 中。 www.{域名}。在 CNAME {域名} 中。 {域名}。在 MX 10 邮件中。{域名}。 {域名}。在 TXT 中“v=spf1 a mx”

{customdns} *.{域名} 14400 IN A {域名}

I have EHCP installed because it's simple and helpful on server with few FTP accounts and websites. It's testing only server.

Problem is: I can access *.avki.zgarnijlicke.pl, *.kierowca.zgarnijlicke.pl but *.zgarnijlicke.pl isn't working.

My config's are:
a) Apache template:

#____________start of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________
# explanation  {aciklama}

<VirtualHost *> ServerName {domainname} ServerAlias www.{domainname} # buraya aliaslar yazilacak.. {aliases}

    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}

</VirtualHost>

<VirtualHost *>
ServerName webmail.{domainname}
ServerAlias mail.{domainname}
ServerAlias email.{domainname}

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

</VirtualHost>

<VirtualHost *>
ServerName cpanel.{domainname}
ServerAlias panel.{domainname}
ServerAlias ehcp.{domainname}
ServerAlias cp.{domainname}

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/

</VirtualHost>
#____________end of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________

b) apache Aliases:

*.zgarnijlicke.pl
*.avki.zgarnijlicke.pl
*.kierowca.zgarnijlicke.pl

c) DNS template

$TTL    86400
@       IN      SOA     ns.{domainname}. {dnsemail} (
                        {serial}    ; Serial
                        10800  ; Refresh
                        1200    ; Retry
                        86400 ; Expire
                        86400 ); Minimum

{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"

{customdns} *.{domainname} 14400 IN A {domainname}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烛影斜 2024-09-14 03:39:41

解决了。
别名:
<代码>

*.zgarnijlicke.pl

DNS template:

$TTL    86400
@       IN      SOA     ns.{domainname}. {dnsemail} (
                        {serial}     ; Serial
                        10800   ; Refresh
                        1200     ; Retry
                        86400  ; Expire
                        86400 ) ; Minimum

{域名}。 IN NS ns.{域名}。 ns.{域名}。在 {dnsip} 中 ns1.{域名}。在 {dnsip} 中 ns2.{域名}。在 {dnsip} 中 dns.{域名}。在 {dnsip} 中 dns1.{域名}。在 {dnsip} 中 dns2.{域名}。在 {dnsip} 中 {域名}。在 {webip} 中 邮件.{域名}。在 {mailip} 中 smtp.{域名}。在 {webip} 中 网络邮件.{域名}。在 {webip} 中 ftp.{域名}。在 CNAME {域名} 中。 www.{域名}。在 CNAME {域名} 中。 {域名}。在 MX 10 邮件中。{域名}。 {域名}。在 TXT 中“v=spf1 a mx”

{customdns}

  • 在 {webip} 中


Apache template without changes.

现在,一切都正常了。 asd.qwe.qwe.asd.qwe.asd.zgarnijlicke.pl 和 hello.zgarnijlicke.pl

Solved.
Aliases:

*.zgarnijlicke.pl


DNS template:

$TTL    86400
@       IN      SOA     ns.{domainname}. {dnsemail} (
                        {serial}     ; Serial
                        10800   ; Refresh
                        1200     ; Retry
                        86400  ; Expire
                        86400 ) ; Minimum

{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"

{customdns}

  • IN A {webip}


Apache template without changes.

Now, everything it's working. asd.qwe.qwe.asd.qwe.asd.zgarnijlicke.pl and hello.zgarnijlicke.pl

π浅易 2024-09-14 03:39:41

您不能使用域名作为 A 记录分配的右侧。
*.{domainname} 14400 IN A {domainname}

请尝试以下操作:

*.{domainname} 14400 IN CNAME {domainname}

或者如果您需要使用 A 记录,请尝试

*.{domainname} 14400 IN A {webip}

You can not use a domain name as the right hand side of an A record assignment.
*.{domainname} 14400 IN A {domainname}

Try the following instead:

*.{domainname} 14400 IN CNAME {domainname}

or if you need to use an A record then try

*.{domainname} 14400 IN A {webip}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文