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. Docker - Apache Proxy - still shows localhost:8080

Docker - Apache Proxy - still shows localhost:8080

Added by Michael Schramm about 9 years ago

Hi,

I’ve setup openproject with the docker installation, and use Apache2.4 to proxy the requests to a real domain.

Docker Config:

docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=*** \
  -v /var/www/project/logs:/var/log/supervisor \
  -v /var/www/project/pgdata:/var/lib/postgresql/9.4/main \
  -v /var/www/project/static:/var/db/openproject \
    -e EMAIL_DELIVERY_METHOD=smtp \
    -e SMTP_ADDRESS=*** \
    -e SMTP_PORT=587 \
    -e SMTP_DOMAIN=*** \
    -e SMTP_AUTHENTICATION=login \
    -e SMTP_ENABLE_STARTTLS_AUTO=true \
    -e SMTP_USER_NAME="***" \
    -e SMTP_PASSWORD="***" \
  openproject/community:5.0

Apache2 Config:

<VirtualHost *:80>
    ServerName project.local
    DocumentRoot /var/www/html/

    ProxyRequests On
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
</VirtualHost>

I’m still seeing some links in open project being created for localhost:8080 (example is the logo on the top left)

is there some hidden config variable to set this?


Replies (1)

RE: Docker - Apache Proxy - still shows localhost:8080 - Added by Andreas Chiarello over 8 years ago

Try adding
ProxyPreserveHost On
in your VirtualHost configuration.

Worked for me

  • (1 - 1/1)
Loading...