ballpen
V2EX  ›  问与答

网站某目录 指定 IP 可访问的问题

  •  
  •   ballpen · Jan 7, 2015 · 2841 views
    This topic created in 4166 days ago, the information mentioned may be changed or developed.
    比如 www.baidu.com 怎么实现 www.baidu.com/admin 这目录只能 192.168.1.1 访问

    centos
    nginx
    3 replies    2015-01-07 17:51:08 +08:00
    ballpen
        1
    ballpen  
    OP
       Jan 7, 2015
    其实说具体点是 DZ 的 uc 目录

    域名/uc_server 为了安全,想这个地址 能指定IP访问

    如果实现了 对DZ 有无影响?
    koy1619
        3
    koy1619  
       Jan 7, 2015
    location /admin {

    allow 192.168.1.1;
    deny all;

    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3124 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:36 · PVG 21:36 · LAX 06:36 · JFK 09:36
    ♥ Do have faith in what you're doing.