简体   繁体   English

Apache 2.4 https反向代理不起作用

[英]Apache 2.4 https Reverse Proxy not working

Trying to reverse proxy with https only. 尝试仅使用https反向代理。 All though the ssl & https works with the chosen domain, it is directing to the apache root not the desired reverse proxy server. 尽管ssl和https可以与所选域一起使用,但它是定向到apache根目录而不是所需的反向代理服务器。

So far Ive got the server to force https when http is used. 到目前为止,我已经让服务器在使用http时强制使用https。 I rewrite www to non www. 我将www重写为非www。 Ive had reverse proxy work fine when its just http but https goes to the "it works" root file with a green lock. Ive仅使用http时,反向代理就可以正常工作,但是https带有绿色锁会转到“它有效”的根文件。

Any ideas? 有任何想法吗?

So i solved this issue at the last hour. 所以我在最后一个小时解决了这个问题。 But where i am confused is i solved this by manipulating the config files and using the defualt text. 但是,我感到困惑的地方是通过操作配置文件并使用默认文本来解决此问题。 Not by adding my own virtual hosts and injecting code at the bottom like the old days or blogs would suggest. 不必像过去或博客所建议的那样添加我自己的虚拟主机并在底部注入代码。 I added proxy rules into the proxy config file. 我将代理规则添加到代理配置文件中。 Added cert paths into the ssl config file and that seemed to take over randomly pasting code into http config as it might be sugested elsewhere on the net. 在ssl config文件中添加了证书路径,这似乎接管了将代码随机粘贴到http config中的过程,因为它可能会被网络上的其他地方使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM