Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Show "Jatos local" after configuration of Apache as a proxy

edited July 2022 in JATOS

Hi there,

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 ( ), 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 = ""
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 in your browser's address bar

In the /etc/apache2/sites-available/, I have:


Let me know if you know how to solve the problem or you need more info!

Thank you very much!😀



  • krikri
    edited July 2022

    Hi Sheng,

    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:

    $ /usr/sbin/apache2 -v
    Server version: Apache/2.4.52 (Ubuntu)
    Server built:  2022-06-14T12:30:21


    $ cat /etc/apache2/apache2.conf
    <VirtualHost *:80>
      # Redirect all unencrypted traffic to the respective HTTPS page
      Redirect "/" ""
    <VirtualHost *:443>
      # Restrict access to JATOS GUI to local network
      #<Location "/jatos">
      #  Order deny,allow
      #  Deny from all
      #  Allow from ::1
      #  Allow from localhost
      #  Allow from 192.168
      # Needed for JATOS to get the correct host and protocol
      ProxyPreserveHost On
      RequestHeader set X-Forwarded-Proto "https"
      RequestHeader set X-Forwarded-Ssl "on"
      # Your certificate for encryption
      SSLEngine On
      SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
      SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
      # JATOS uses WebSockets for its batch and group channels
      RewriteEngine On
      RewriteCond %{HTTP:Upgrade} =websocket [NC]
      RewriteRule /(.*)           ws://localhost:9000/$1 [P,L]
      RewriteCond %{HTTP:Upgrade} !=websocket [NC]
      RewriteRule /(.*)           http://localhost:9000/$1 [P,L]
      # Proxy everything to the JATOS running on localhost on port 9000
      ProxyPass / http://localhost:9000/
      ProxyPassReverse / http://localhost:9000/

    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 "". I removed that file in both directories and redo the

    sudo a2ensite

    Maybe this is the solution.

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games