前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Apache http rewire重写https报错

Apache http rewire重写https报错

作者头像
用户8675788
修改2021-07-14 11:37:22
9880
修改2021-07-14 11:37:22
举报
文章被收录于专栏:鹿苑鹿苑

场景:Apache 需要把当前网址的sapi这个路径用RewriteRule重写到一个第三方的https网址下

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^sapi "https://www./search/apache/1/" [P,L]

</IfModule>

默认开启了

LoadModule proxy_http_module modules/mod_proxy_http.so

LoadModule proxy_module modules/mod_proxy.so

报错:

AH01112: HTTPS: declining URL https://www./search/apache/1/ (mod_ssl not configured?)

AH01144: No protocol handler was valid for the URL /sapi (scheme 'https'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

开启

LoadModule ssl_module modules/mod_ssl.so

报错:AH01961: SSL Proxy requested for xxx.xxx.xxx.xxx:80 but not enabled

在站点中添加

SSLProxyEngine On

SSLProxyVerify none

SSLProxyCheckPeerCN off

SSLProxyCheckPeerName off

<VirtualHost *:8080>

ServerAdmin webmaster@dummy-host.example.com

DocumentRoot "/public_html/default/"

<Directory "/public_html/default/">

Options -Indexes +FollowSymLinks

AllowOverride All

Require all granted

</Directory>

SSLProxyEngine On

SSLProxyVerify none

SSLProxyCheckPeerCN off

SSLProxyCheckPeerName off

ServerName demo.

LogLevel debug

ErrorLog "/public_html/default/error.log"

CustomLog "/public_html/default/access.log" common

</VirtualHost>

成功

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
SSL 证书
腾讯云 SSL 证书(SSL Certificates)为您提供 SSL 证书的申请、管理、部署等服务,为您提供一站式 HTTPS 解决方案。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档