wzx155
V2EX  ›  Apache

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

  •  
  •   wzx155 · Mar 16, 2022 via Android · 2027 views
    This topic created in 1543 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   ·   2923 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 06:54 · PVG 14:54 · LAX 23:54 · JFK 02:54
    ♥ Do have faith in what you're doing.