Home
Sign Up
Sign In
V2EX
›
问与答
Nginx 没法像 Apache httpd 一样用.htaccess 对单个目录进行设置吗?
cstome
·
Jun 1, 2017
· 2206 views
This topic created in 3292 days ago, the information mentioned may be changed or developed.
新买了台 VPS,配置了 LNMP,由于之前使用 Apache,.htaccess 除了设置 rewrite 之外还能对缓存、目录权限进行设置进行设置,刚用 Nginx,不知道有没有类似的功能。
Nginx
Apache
htaccess
设置
2 replies
1
GoBeyond
Jun 1, 2017 via Android
include 能给进变量吗?没试过,如果可以的话就可以
2
kchum
Jun 2, 2017 via iPad
https://stackoverflow.com/questions/31192581/nginx-deny-all-files-inside-directory
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2867 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms ·
UTC 02:48
·
PVG 10:48
·
LAX 19:48
·
JFK 22:48
♥ Do have faith in what you're doing.
❯