我在这里寻找一些配置http-ssl.conf文件的帮助。我们使用nginx作为代理服务器,但现在我们正尝试用Apache HTTP server (httpd)服务器替换它。我们有各种代理头设置和auth_request设置,用于图形用户界面页面重定向。
我在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;发布于 2020-05-25 02:38:40
我在nginx httpd上找不到太多,但据我所知,这是一个Apache协议。也许这会对你有所帮助:
apachectl是apachectl传输协议( HyperText Transfer Protocol,
)服务器的前端。它旨在帮助管理员控制Apache httpd守护程序的功能。
apachectl脚本可以在两种模式下运行。首先,它可以充当httpd命令的简单前端,该命令只需设置任何必要的环境变量,然后调用httpd,传递任何命令行参数。其次,apachectl可以充当SysV初始化脚本,接受简单的一个单词的参数,如启动、重新启动和停止,并将它们转换为适当的信号给httpd。
如果Apache安装使用非标准路径,则需要编辑apachectl脚本以设置httpd二进制文件的适当路径。您还可以指定任何必要的httpd命令行参数。有关详细信息,请参阅脚本中的注释。
https://stackoverflow.com/questions/61990169
复制相似问题