Installation

docker, reverse proxy and the main menu sidebar

docker, reverse proxy and the main menu sidebar

by Joongul Lee -
Number of replies: 2

Hello,


I need some help with webwork installation. My wife is teaching a small calculus course, so I am installing webwork 2.16 for my home server. 


My server runs a cloud docker container, so I decided to set up a reverse proxy that provides SSL and forwards incoming traffic to cloud and webwork containers. After lots of work, it begins to work.


If I access webwork by the URL http://localhost:8080/webwork2/ then I can see the main menu sidebar, but if I access from outside by https://my.domain.net/webwork2/ then the main page shows without the main menu sidebar.


From inside the container, WEBWORK_ROOT_URL is https://my.domain.net and WEBWORK_URL is /webwork2, which seems correct. I suppose that the reverse proxy is not doing its job? I am using the official nginx image as a reverse proxy, and the cloud service runs fine. I have attached the reverse proxy configuration for webwork.


The following is the content of webwork.conf.


upstream webwork {

  server        webwork;

}


server {

  listen 80;

  server_name my.domain.net;


  location / {

    return 301 https://my.domain.net/;

  }

}


server {

  listen        443 ssl;

  server_name   my.domain.net;


  include       common.conf;

  include       /etc/nginx/ssl.conf;


  location / {

    proxy_pass  http://webwork/;

    include common_location.conf;

  }

}


Your help is very much appreciated,

Joongul

In reply to Joongul Lee

Re: docker, reverse proxy and the main menu sidebar

by Danny Glin -
Are you able to post screenshots of what you are seeing?
In reply to Joongul Lee

Re: docker, reverse proxy and the main menu sidebar

by Joongul Lee -
I found out what was wrong with my installation... I mounted my own webwork2 directory (to fix some translations) which made the installation incomplete.