使用Plesk Onyx 17.5在Ubuntu 14.04上的自定义子域上设置YouTrack

时间:2018-04-27 09:24:34

标签: ubuntu-14.04 plesk youtrack

我想使用zip-Version在我的网络服务器上单独设置YouTrack。

我上传并解压缩了我服务器上的所有文件,并创建了一个子域名(board.domain.de)。然后我配置YouTrack wo使用另一个基本URL并听另一个端口:

./youtrack.sh configure --listen-port 1111 --base-url https://board.domain.de:2222

这是输出:

* Configuring JetBrains YouTrack 2018.1 
* Setting property 'listen-port' to '1111' from arguments 
* Setting property 'base-url' to 'https://board.domain.de:2222' from arguments 
* JetBrains YouTrack 2018.1 runtime environment is successfully configured 
* Loading logging configuration from /var/www/vhosts/domain.de/board.domain.de/youtrack-2018/lib/ext/log4j.xml 
* Redirecting JetBrains YouTrack 2018.1 logging to /var/www/vhosts/domain.de/board.domain.de/youtrack-2018/logs/internal/services/bundleProcess 
* Configuring Service-Container[bundleProcess] 
* Configuring Bundle Backend Service 
* Configuring Configuration Wizard 

然后我通过./youtrack.sh start启动了YouTrack,工作正常,没有任何错误。输出:

Starting YouTrack...
* Configuring JetBrains YouTrack 2018.1 
* JetBrains YouTrack 2018.1 runtime environment is successfully configured 
* Loading logging configuration from /var/www/vhosts/domain.de/board.domain.de/youtrack-2018/lib/ext/log4j.xml 
* Redirecting JetBrains YouTrack 2018.1 logging to /var/www/vhosts/domain.de/board.domain.de/youtrack-2018/logs/internal/services/bundleProcess 
* Configuring Service-Container[bundleProcess] 
* Configuring Bundle Backend Service 
* Configuring Configuration Wizard 
* Starting Service-Container[bundleProcess] 
* Starting Bundle Backend Service 
* Starting Configuration Wizard 
* JetBrains YouTrack 2018.1 Configuration Wizard will be available on [https://board.domain.de:2222/?wizard_token=7bDc4UyhjyLFPmlJhkzm] after start 
YouTrack is running

点击显示的网址,我的浏览器会打开,但会显示错误。网站无法访问(ERR_CONNECTION_REFUSED)。我认为这与我的apache / nginx配置有关。所以我跟着these instructions

所以,在我的子域设置下的Plesk中,我编辑了常见的apache设置:

enter image description here

但我仍然从上面得到错误。我做错了什么?

1 个答案:

答案 0 :(得分:0)

问题似乎出在基本URL中使用 https 。 Apache配置不包含启用TLS模式所需的行:

SSLEngine On
SSLCertificateFile <path_to_certificate>
SSLCertificateKeyFile <path_to_key>

通过这种方式,代理可以在浏览器尝试建立安全连接时侦听2222端口上的纯HTTP流量。

有关模式的详细信息,请参见official documentation