可以在Nginx中使用.htaccess文件吗(我无法使用)?

huangapple go评论52阅读模式
英文:

Is it possible we can use htaccess File in Nginx (I Did not able to use)

问题

I want to Use htaccess File Nginx

https://apkkingo.com/pixomatic-mod-apk/
https://apkkingo.com/pixomatic-mod-apk/
英文:

I want to Use htaccess File Nginx

https://apkkingo.com/pixomatic-mod-apk/
https://apkkingo.com/pixomatic-mod-apk/

答案1

得分: 1

不,您不能在Nginx Web服务器中使用.htaccess文件。Nginx不支持在公共HTML空间中使用每个目录的配置文件。您需要编辑主服务器配置。

.htaccess文件是Apache(每个目录)的配置文件。LiteSpeed(一个可替代Apache的“插入式”选项)也支持.htaccess文件。

IIS本身不原生支持.htaccess,但有一个付费插件(名为Helicon Ape)可以提供类似.htaccess的功能(带有一些区别)。

英文:

No, you cannot use .htaccess files with the Nginx webserver. Nginx does not support per-directory config files in the public-HTML space. You need to edit the main server config.

.htaccess files are an Apache (per-directory) config file. LiteSpeed (a "drop-in" replacement for Apache) also supports .htaccess files.

IIS does not support .htaccess natively either, but there is a paid plugin (called Helicon Ape) that also gives .htaccess like ability (with some differences).

huangapple
  • 本文由 发表于 2023年3月31日 19:33:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/75898060.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定