Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. 503 Error in browser using Apache with proxy+SSL and Docker installed OP

503 Error in browser using Apache with proxy+SSL and Docker installed OP

Added by Henrik Soederlund about 5 years ago

Hi!

I have a CentOS8 server running, with Docker Engine and docker-compose installed (I'm a newb on Docker btw). I have Apache (httpd) installed normally through dnf and have configured a VirtualHost file according to the OP installation guide. I have added my Cloudflare Origin certificates and they seem to work fine (project.pars.work) through Apache.

OpenProject is run via Docker, using this command: docker-compose up -d

My virtualHost file is like this:

<VirtualHost *:80>
ServerName project.pars.work
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*)$ https://%{SERVER_NAME}/$1 [R,L]
<VirtualHost *:443>
ServerName project.pars.work
SSLEngine on
SSLCertificateFile /etc/ssl/crt/server.crt
SSLCertificateKeyFile /etc/ssl/crt/server.key
RewriteEngine on
RewriteRule "^$" "/" [R,L]
ProxyRequests off
<Location "/">
RequestHeader set X-Forwarded-Proto 'https'
ProxyPreserveHost On
ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/
</Location>
</VirtualHost>

Here are a few outputs:

netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      720/sshd

tcp6       0      0 :::80                   :::*                    LISTEN      13915/httpd

tcp6       0      0 :::8080                 :::*                    LISTEN      8745/docker-proxy

tcp6       0      0 :::22                   :::*                    LISTEN      720/sshd

tcp6       0      0 :::443                  :::*                    LISTEN      13915/httpd

wget -p http://localhost:8080
--2020-04-24 20:22:42--  http://localhost:8080/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2020-04-24 20:22:48 ERROR 503: Service Unavailable.

I am not sure what is wrong it this point. Is someone able to help steer me in the right direction?


Loading...