首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
问与答
Nginx 没法像 Apache httpd 一样用.htaccess 对单个目录进行设置吗?
cstome
·
2017 年 6 月 1 日
· 2041 次点击
这是一个创建于 3147 天前的主题,其中的信息可能已经有所发展或是发生改变。
新买了台 VPS,配置了 LNMP,由于之前使用 Apache,.htaccess 除了设置 rewrite 之外还能对缓存、目录权限进行设置进行设置,刚用 Nginx,不知道有没有类似的功能。
Nginx
Apache
htaccess
设置
2 条回复
1
GoBeyond
2017 年 6 月 1 日 via Android
include 能给进变量吗?没试过,如果可以的话就可以
2
kchum
2017 年 6 月 2 日 via iPad
https://stackoverflow.com/questions/31192581/nginx-deny-all-files-inside-directory
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
3783 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 04:16
·
PVG 12:16
·
LAX 20:16
·
JFK 23:16
♥ Do have faith in what you're doing.
❯