Show "Jatos local" after configuration of Apache as a proxy
I've deployed Jatos on an AWS server, with Apache2 as the reverse proxy and SSL encryption. Since it is actually a local installation (because the binding port is localhost:8080), the GUI for my https:/[our domain name]/jatos show "Jatos local" on top, as it is shown here (https://www.jatos.org/Deploy-to-a-server-installation.html ), which mentions that "A local JATOS installation has a black bar on top. A server installation has a light-grey bar."
When I generate links for a study, they are all like this
If I replace localhost:8080 with [our domain name], I can open the correct study webpage, but I need to replace "localhost:8080" for all links generated if I want to send them to participants.
Since I use reverse proxy, I think it is supposed to be set as local. But is there a way to make it like a real server installation?
I'm using an AWS EC2 Debian 11 instance;
In the production.conf, the IP and port are set as:
play.server.http.address = "0.0.0.0" play.server.http.port = 8080
After I start jatos, it shows
admin@myserver:~/jatos_linux_java$ JATOS uses local Java Starting JATOS... started To use JATOS type 127.0.0.1:8080 in your browser's address bar
In the /etc/apache2/sites-available/mysite.com.conf, I have:
Let me know if you know how to solve the problem or you need more info!
Thank you very much!😀
I just tried it with JATOS version 3.7.4 on my machine and it worked. I can't see any obvious problems in your config.
My config is:
And I didn't change anything in JATOS' production.conf. So JATOS port is the default 9000.
Hope this helps.
Thank you Kristian!
Maybe I can try on another AWS instance.
It is working now! It shows yellow icon on the top bar!
Although I'm not 100% sure, I can share what I did for your reference.
Some files were generated during my configuration of Apache in the directory /etc/apache2/sites-avaibable and /etc/apache2/sites-enabled, which include "mysite.com-le-ssl.conf". I removed that file in both directories and redo the
Maybe this is the solution.