Error 301 when trying to open OpenProject

I’m trying to deploy Docker containers of OpenServer version 17 with TLS configuration via an Apache reverse proxy. I copied the contents of the .env.example file and changed the parameters OPENPROJECT_HTTPS (set to true), PORT (set to 127.0.0.1:8080), and OPENPROJECT_HOST_NAME (set to the server’s domain name).

TAG=17-slim
OPENPROJECT_HTTPS=true
SECRET_KEY_BASE=
OPENPROJECT_HOST__NAME=
PORT=127.0.0.1:8080
OPENPROJECT_RAILS__RELATIVE__URL__ROOT=
IMAP_ENABLED=false
DATABASE_URL=postgres://postgres:p4ssw0rd@db/openproject?pool=20&encoding=unicode&reconnect=true
RAILS_MIN_THREADS=4
RAILS_MAX_THREADS=16
PGDATA="/var/lib/postgresql/data"
OPDATA="/var/openproject/assets"
COLLABORATIVE_SERVER_URL=ws://localhost:8080/hocuspocus
COLLABORATIVE_SERVER_SECRET=secret12345
POSTGRES_VERSION=17 # 

My Apache configuration looks like this:



    SSLEngine On
    SSLCertificateFile 
    SSLCertificateKeyFile 
    RewriteEngine on
    RewriteRule "^$" "/" [R,L]

    ServerName 
    ServerAdmin admin@localhost
    ProxyRequests Off
    ProxyPreserveHost On
    RequestHeader set X_Forwarded_Proto 'https'
    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/
    ErrorLog 

When I go to the OpenProject web interface, I see error 401 — too many redirects.

If I deploy an all-in-one container and use these configurations, everything works fine.What could be the problem? I need your help.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论