gpt4 book ai didi

.htaccess - 没有 Nginx 或 Apache 的 Golang htaccess 配置

转载 作者:数据小太阳 更新时间:2023-10-29 03:29:45 25 4
gpt4 key购买 nike

我创建了 web app并用 Google site analyzer 进行分析.

在大多数情况下,我需要配置htaccess 文件。据我了解,此文件只能在 Nginx 或 Apache 服务器上使用,但我不想使用其中任何一个。

我只想使用 golang 工具配置 htaccess。目前我的应用程序在 VPS 服务器上运行。

最佳答案

此项目允许您使用 GO、零 apache 代码支持 http 身份验证标准。

您甚至可以使用通过 Apache htpasswd(坏)或 htdigest(好)命令创建的密码文件:

https://github.com/abbot/go-http-auth

关于.htaccess - 没有 Nginx 或 Apache 的 Golang htaccess 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50075169/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com