Phabricator Notification Servers SSL错误

问题描述 投票:2回答:1

我的Ubuntu 18.04服务器正在使用Apache 2作为Web服务器,并且我使用了letencrypt为phabricator vhost域创建了一个ssl

  sudo certbot --apache -d phabricator.xxxx.com

我试图像这样为我的制颤器设置notification.servers配置:

[
  {
    "type": "client",
    "host": "phab.xxxx.com",
    "port": 22280,
    "protocol": "https"
  },
  {
    "type": "admin",
    "host": "127.0.0.1",
    "port": 22281,
    "protocol": "http"
  }
]

但是当我检查通知服务器的配置页面时,它显示:enter image description here

这里是虚拟主机配置文件phabricator.xxxx.com.confphabricator.xxxx.com-le-ssl.conf] >>

<IfModule mod_ssl.c>
<VirtualHost *:443>
     ServerAdmin [email protected]
     DocumentRoot /var/www/html/repository/phabricator/webroot
     ServerName phabricator.xxxx.com
     ServerAlias www.phabricator.xxxx.com

           RewriteEngine on
           RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
           RewriteRule ^/favicon.ico   -                       [L,QSA]
           RewriteCond %{REQUEST_URI}  ^/ws/
           RewriteCond %{QUERY_STRING} transport=websocket
           RewriteRule /(.*)           ws://localhost:22280/$1 [B,P,L]
           RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

     <Directory /var/www/html/repository/phabricator/webroot/>
            Require all granted
        LimitRequestBody  45242880
    </Directory>

    <IfModule mpm_itk_module>
      AssignUserId phab phab
    </IfModule>    

SSLCertificateFile /etc/letsencrypt/live/phabricator.xxxx.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/phabricator.xxxx.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

我已经添加/ var / www / html / repository / phabricator / support / preamble.php

,内容如下:
<?php

$_SERVER['HTTPS'] = true; 

我的Ubuntu 18.04服务器正在使用Apache 2作为Web服务器,我使用letencrypt为phabricator虚拟主机域sudo certbot --apache -d phabricator.xxxx.com创建了一个ssl,我试图设置...

apache ssl websocket lets-encrypt phabricator
1个回答
-1
投票
似乎通知服务器配置中的端口应为443,因为这是您Apache主机的端口。 22280将是Aphlict使用的端口,它不使用https。
© www.soinside.com 2019 - 2024. All rights reserved.