gpt4 book ai didi

ruby-on-rails - 如何在 linux apache 托管服务器(即主机、bluehost)中使用 https 配置 redmine

转载 作者:太空宇宙 更新时间:2023-11-04 13:02:54 24 4
gpt4 key购买 nike

如何在 linux apache 托管服务器(即主机、bluehost)中使用 https 配置 redmine。

正常的 http 站点正在运行。但它不适用于 https。我收到类似“找不到页面”的错误。

最佳答案

我通常做的是配置apache或者nginx将http重定向到https

    ServerAdmin webmaster@localhost
ServerName redmine.example.com

DocumentRoot /var/www/redmine/public

RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]

ErrorLog /var/log/apache2/redmine_error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/redmine_access.log combined

不要忘记 VirtualHost 指令

您需要在您的网络服务器上启用 ssl

关于ruby-on-rails - 如何在 linux apache 托管服务器(即主机、bluehost)中使用 https 配置 redmine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33471123/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com