反向代理一个网站,可以设置指定目录密码,但是直连无需密码?
source link: https://www.v2ex.com/t/911504
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
kaedeair 1 小时 5 分钟前 1 可以搞一个摘要认证的中间件,通过匹配路径来重定向,认证完毕再转回去,之前用 traefik 搭建 htpc 的时候实现过
|
cosmain 57 分钟前 1 nginx 的 location 配置+http basic authentication
|
killva4624 40 分钟前 location ~ ^/folder/\S+
{ ... # Process with files } location ~ ^/folder { .... # Process with auth # auth_basic "Administrator Login"; # auth_basic_user_file /other_folder/.htpasswd; } |
Recommend
-
92
Nginx 反向代理工作原理简介与配置详解 - 李雄
-
64
现在的大家经常使用Nginx做代理,例如用Nginx去代理Node。如果代理的Node过多,Node一旦出现问题我们怎么知道到底是哪个出了问题呢?于是就有了今天的文章,我们可以设置请求返回时带上被代理机器的一些信息。 Nginx的配置
-
50
caddy-grpc 为 caddy 添加一个 反向代理插件 项目地址: https://github.com/yhyddr/caddy-grpc 前言 上一次我们学习了如何在 Caddy 中扩展自己想要...
-
3
分享一个Nginx反向代理的另类应用案例 | 张戈博客Jager · 5月2日 · 2019年nginx · nginx配置 · web ·
-
8
V2EX › 云计算 有什么可以经过 HTTP 代理来反代网站的工具? theklf4 · 1 小时 51 分钟...
-
9
V2EX › NGINX 请教一个 nginx 反向代理 sub_filter 正则替换字符串的问题。 JustinMsc · 11...
-
7
我司路由器的WAN口不支持设置代理上网。如您已经购买路由器,请尝试以下操作。 一、线路连接 电脑使用代理上网,其所有上网数据的请求都是发...
-
3
Nginx代理配置只允许指定IP访问 精选 原创 码农小宋 2023-01-08 19:04:08...
-
4
Nginx是一个开源的高性能HTTP和反向代理服务器,它也可以用作邮件代理服务器和通用的TCP/UDP代理服务器。在本...
-
4
Apache HTTP Server 在 Apache 中设置反向代理,需要使用 mod_proxy 和相关的模块,如 mod_proxy_http。以下是一个基本的配置示例: 确保已经安装并启用了 mod_proxy 和 mod_proxy_http ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK