如何保护Apache2免受反DNS固定和反DNS重新绑定?

如何保护我的apache2服务器免受反DNS固定和反DNS重新绑定? 我在公司中工作,在那儿通知安全很重要,但他们只能在一个平台上进行测试并告诉我问题出在哪里(
我是前端用户,不知道如何保护服务器(我很希望您能提供建议并向我显示正确的路径!非常感谢!)
这是我的

site.name.conf

<IfModule mod_ssl.c>
  <VirtualHost *:443>
    ServerAdmin webmaster@localhost
    ServerName site.name
    ServerAlias site.name
    DocumentRoot /data/edu3/public
    <Directory /data/edu3/>
      AllowOverride All
      Order allow,deny
      allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Include /etc/apache2/options-ssl-apache.conf
    SSLCertificateFile /data/ssl/u1.crt
    SSLCertificateKeyFile /data/ssl/u1.key
  </VirtualHost>
  <VirtualHost *:443>
    ServerName catchall
    <Location />
        Order allow,deny
        Deny from all
    </Location>
  </VirtualHost>
</IfModule>
  <VirtualHost 10.224.32.10:80>
    ServerAdmin webmaster@localhost
    ServerName site.name  
    DocumentRoot /data/edu3/public
    <Directory /data/edu3/>
      AllowOverride All
      Order allow,deny
      allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
  </VirtualHost>
<VirtualHost _default_:*>
    ServerName catchall
    <Location />
        Order allow,deny
        Deny from all
    </Location>
  </VirtualHost>
<VirtualHost 10.224.32.10:80>
    ServerName catchall
    <Location />
        Order allow,deny
        Deny from all
    </Location>
  </VirtualHost>
lin993400 回答:如何保护Apache2免受反DNS固定和反DNS重新绑定?

最简单的方法是分别添加此虚拟主机,并确保主网站的虚拟主机使用ServerName指令。

<VirtualHost _default_:80>
ServerAdmin webmaster@localhost
DocumentRoot "/path/to/defaultpagedirectory"
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log
</VirtualHost>

基本上,它的作用是,它在文档根目录中有一个默认页面(您必须创建它),如果Host标头不同,它将为用户提供该默认页面。

本文链接:https://www.f2er.com/2759994.html

大家都在问