小编kan*_*nix的帖子

apache 2.4 + gitlab +letsencrypt 不工作

我使用以下配置在所有虚拟主机上启用 letencrypt 支持:

ProxyPass /.well-known/acme-challenge !

Alias /.well-known/acme-challenge/ /var/www/letsencrypt/.well-known/acme-challenge/

<Directory "/var/www/letsencrypt/.well-known/acme-challenge/">
    Options None
    AllowOverride None
    ForceType text/plain
    RedirectMatch 404 "^(?!/\.well-known/acme-challenge/[\w-]{43}$)" 
</Directory>
Run Code Online (Sandbox Code Playgroud)

这适用于除 gitlab 之外的所有主机(主要是 php 或静态站点)

我正在使用这个配置:https : //github.com/gitlabhq/gitlab-recipes/blob/master/web-server/apache/gitlab-ssl-apache24.conf

我的猜测是这个配置部分有问题:

<Location />
    # New authorization commands for apache 2.4 and up
    # http://httpd.apache.org/docs/2.4/upgrading.html#access
    Require all granted

    #Allow forwarding to gitlab-workhorse
    ProxyPassReverse http://127.0.0.1:8181
    ProxyPassReverse http://YOUR_SERVER_FQDN/
  </Location>
Run Code Online (Sandbox Code Playgroud)

但解决这个问题的最佳方法是什么?

apache-2.4 lets-encrypt

4
推荐指数
1
解决办法
1645
查看次数

标签 统计

apache-2.4 ×1

lets-encrypt ×1