ballpen
V2EX  ›  问与答

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

  •  
  •   ballpen · Jan 7, 2015 · 3155 views
    This topic created in 4349 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
    ballpen
    OP
    Jan 7, 2015
    1
    其实说具体点是 DZ 的 uc 目录

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

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

    allow 192.168.1.1;
    deny all;

    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4104 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 09:19 · PVG 17:19 · LAX 01:19 · JFK 04:19
    ♥ Do have faith in what you're doing.