【发布时间】:2020-05-24 18:03:28
【问题描述】:
我来这里是为了在配置http-ssl.conf 文件时找到一些帮助。我们使用 nginx 作为代理服务器,但现在我们正在尝试用 Apache HTTP Server (httpd) 服务器替换它。我们有各种代理标头集和auth_request 集,用于 GUI 页面重定向。
我在httpd 中设置auth_request set。我挣扎了将近一个星期,所以有人可以告诉我如何将下面的 nginx 配置设置到 httpd 中:
auth_request /auth;
auth_request_set $user $upstream_http_user;
auth_request_set $role $upstream_http_role;
auth_request_set $domain $upstream_http_domain;
proxy_set_header user $user;
proxy_set_header role $role;
proxy_set_header domain $domain;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect /graph /xxxx/graph;
【问题讨论】: