cstome
V2EX  ›  问与答

Nginx 没法像 Apache httpd 一样用.htaccess 对单个目录进行设置吗?

  •  
  •   cstome · Jun 1, 2017 · 2511 views
    This topic created in 3459 days ago, the information mentioned may be changed or developed.

    新买了台 VPS,配置了 LNMP,由于之前使用 Apache,.htaccess 除了设置 rewrite 之外还能对缓存、目录权限进行设置进行设置,刚用 Nginx,不知道有没有类似的功能。

    GoBeyond
    GoBeyond
    Jun 1, 2017 via Android
    1
    include 能给进变量吗?没试过,如果可以的话就可以
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1078 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:32 · PVG 07:32 · LAX 15:32 · JFK 18:32
    ♥ Do have faith in what you're doing.