首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将nginx.conf文件配置到httpd-ssl.conf作为代理服务器

如何将nginx.conf文件配置到httpd-ssl.conf作为代理服务器
EN

Stack Overflow用户
提问于 2020-05-25 02:03:28
回答 1查看 66关注 0票数 1

我在这里寻找一些配置http-ssl.conf文件的帮助。我们使用nginx作为代理服务器,但现在我们正尝试用Apache HTTP server (httpd)服务器替换它。我们有各种代理头设置和auth_request设置,用于图形用户界面页面重定向。

我在httpd中设置auth_request set被卡住了。我已经挣扎了将近一个星期,所以谁能告诉我如何将nginx的以下配置设置到httpd中:

代码语言:javascript
复制
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;
EN

回答 1

Stack Overflow用户

发布于 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://httpd.apache.org/docs/2.4/programs/apachectl.html

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61990169

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档