Good day dear community. For a few days now I’ve been trying to set up a kobotoolbox server via Apache2 > Kobotoolbox proxy chain, but I get the standard “Waiting for environment to be ready. It can take a few minutes. …”
Got SSL certificates via Apache for my domain kobo.***.com
In certbot itself, when getting them, I wrote the following domains:
- kobo.***.com
- kf.kobo.***.com
- kc.kobo.***.com
- ee.kobo.***.com
As a result, I received one certificate for all 4 domain names.
I would like to ask you - could someone share an anonymized example of the contents of their working Apache config file ? Most likely I made so many attempts at this configuration that I got a mess of everything.
And also need to do for each domain name separate virtual hosting on Apache ? Is it necessary to additionally configure kobotoolbox or when installing is enough to select that I want to use HTTPS and select that I have my own proxy ?
Good afternoon. @elvera33ford thank you for your quick response. It was very useful. I made the configuration according to your advice, but unfortunately i still get “Waiting for environment to be ready. It can take a few minutes. …” Can I ask you to evaluate my virtual host configurations for correctness?
<VirtualHost *:80>
ServerName kobo.***.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
<VirtualHost *:443>
ServerName kobo.***.com
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/kobo.***.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/kobo.***.com/privkey.pem
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
RequestHeader set X-Forwarded-Proto https
ErrorLog ${APACHE_LOG_DIR}/kobo_error.log
CustomLog ${APACHE_LOG_DIR}/kobo_access.log combined
</VirtualHost>
and for auxiliary domain names like kf.kobo.***.com.
<VirtualHost *:80>
ServerName kf.kobo.***.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
<VirtualHost *:443>
ServerName kf.kobo.***.com
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/kobo.***.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/kobo.***.com/privkey.pem
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
RequestHeader set X-Forwarded-Proto https
ErrorLog ${APACHE_LOG_DIR}/kf_error.log
CustomLog ${APACHE_LOG_DIR}/kf_access.log combined
</VirtualHost>
I also tried these variants where I wrote Redirect permanent / https://kf.kobo.***.com/ in the
<VirtualHost *:80>
ServerName kf.kobo.***.com
Redirect permanent / https://kf.kobo.***.com/
</VirtualHost>
Here’s the Apache port configuration
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Maybe it’s not Apache ? How else can it be checked ?
Thank you in advance for your reply
P.s. I have a suspicion that my Xiaomi BE5000 router is somehow incorrectly forwarding ports 80 and 443 and clogging it by Xiaomi admin panel (but this is not certain).
Update.
The problem with port forwarding on Xiaomi BE5000 router is solved. But “Waiting for environment to be ready. It can take a few minutes. …” still continues and Kobo does not start. Can someone tell me in what logs I can try to find what the problem is? Thanks