wzx155
V2EX  ›  Apache

大佬们, apache 服务器配置虚拟主机,配置禁止所有非法域名时。

  •  
  •   wzx155 · Mar 16, 2022 via Android · 2002 views
    This topic created in 1534 days ago, the information mentioned may be changed or developed.
    大佬们,apache 服务器配置虚拟主机,配置禁止所有非法域名时,

    #禁止所有非法域名 

    <VirtualHost *:80> 

    ServerName 服务器 ip 

    ServerAlias * 

    <Location /> 

    Order Allow,Deny 

    Deny from all 

    </Location>

    </VirtualHost>。

    apache 是安装在内部服务器上,有一个服务器 ip ,然后把服务器映射到外网 ip 上提供外网使用。在这个配置项中, “ServerName 服务器 ip” 中的服务器 ip 是填内网 ip 还是外网 ip
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3251 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:52 · PVG 19:52 · LAX 04:52 · JFK 07:52
    ♥ Do have faith in what you're doing.