V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wzx155
V2EX  ›  Apache

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

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