linux - 来自 Apache http /.well-known/acme-challenge 的无效响应
问题描述
我有 Apache httpd 服务器版本 2.4.33 在 ubuntu 仿生下工作。我已经使用以下配置进行了编译
./configure --prefix=/opt/apache2 --enable-pie --enable-mods-shared=all --enable-so --disable-include --enable-lua --enable-deflate --enable-headers --enable-expires --enable-http2 --with-nghttp2=/opt/nghttp2 --enable-ssl=shared --with-ssl=/opt/openssl --with-openssl=/opt/openssl --with-crypto --enable-module=ssl --enable-mpms-shared=all --with-mpm=event --enable-rewrite --with-z=${HOME}/apache24/httpd-${HTTPD_VERSION}/srclib/zlib --enable-md --enable-fcgid --with-included-apr CFLAGS="-O0 -g3 -fsanitize=address"
我想安装让我们加密 ACME,提供的错误是:
example.com:Verify error:Invalid response from http://example.com/.well-known/acme-challenge/gteJptcJbMgc7jmGx1EO6-Uf0Ox2bELI44nT6oYcJOI:
我几乎什么都试过了。使用 chown -R user:user htdocs/ 更改所有权,将权限更改为 chmod 755 -R htdocs 甚至更改为 777,但无法打开 acme-challenge。我已经多次修改 httpd.conf 并没有任何不同的响应
解决方案
最终解决方案,因为我已经从 apache 编译了我自己的网络服务器
配置如下
./configure --prefix=/opt/apache2 --enable-mods-shared=all --enable-so --enable-md --enable-deflate --enable-headers --enable-http2 --with-nghttp2=/opt/nghttp2 --enable-ssl=shared --with-ssl=/opt/openssl --with-openssl=/opt/openssl --with-crypto --enable-module=ssl --enable-mpms-shared=all --with-mpm=event --enable-rewrite --with-z=/home/vrt/apache24/httpd-2.4.33/srclib/zlib --enable-fcgid --with-included-apr CFLAGS="-O0 -g3"
编译和安装
$make && sudo make install
当它最终安装时,只需修改 httpd.conf 以监听端口号 5002
运行您的 certbot 或 acme.sh 和 Viola!我不应该在初始证书生成之前启用 md
我希望它对未来的人有所帮助
推荐阅读
- python - 如何将 pandas DataFrame 压缩到具有唯一键和列出值的字典中?
- android - 应用程序上的 react-native run-android 时构建错误,没有任何变化
- python - Kivy ScreenManager 不切换屏幕(纯python)
- javascript - 扩展 GraphQL 过滤器定义
- animation - 不能使移动的容器逐渐变大并且从屏幕中心开始在颤动中变小
- android - Android:Makefile.modbuiltin 中的 $(obj) 变量是什么?
- node.js - NodeJS - 承诺解析返回空对象
- javascript - 如何获取容器元素的 CSS 宽度/高度?
- c# - 为什么我的新 WPF 窗口中的控件被冻结?
- typescript - 类型映射时泛型属性的问题