Mahmud
(Mahmudul Islam)
17 February 2023 06:12
1
We have a main domain https://softlmis.com and we installed DHIS2 in the same server under docker which is accessible as http://128.199.98.99:8080/ . Then we updated NGINX configuration to run the DHIS2 instance as https://demo.softlmis.com/ , for example -
server {
server_name demo.softlmis.com ; # managed by Certbot
location / {
proxy_pass http://localhost:8080 ;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection ‘upgrade’;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
#include /etc/nginx/proxy_params;
}
…
The DHIS2 logs in properly in subdomain, but the internal apps like pivot table, capture, maintenance - does not work at all. Everything works from the IP address.
Seems we have to do some updates in the tomcat setup. Can this really be achieved under docker, or we have to install the DHIS2 directly in the server.
Can anyone assist?
1 Like
rithvik
(rithvik reddy)
17 February 2023 18:44
2
@Mahmud ,
What kind of error are you facing when you open the apps?
Thanks,
Rithvik
1 Like
Mahmud
(Mahmudul Islam)
18 February 2023 03:22
3
You can even check yourself if you log in to domain -
User: covax_admin
Password: x1Zcuh#rlja@sDi
When I go to Maintenance it shows blank page. When I login using IP, it works fine.
1 Like
rithvik
(rithvik reddy)
18 February 2023 04:06
4
@Mahmud ,
This issue due to misconfiguration in your nginx. The site is loading over https but the routing is happening via http and giving a mixed content error. Please follow this thread where they faced a similar issue.
Has anyone faced this issue and can advise on how to solve it?
We recently installed a fresh 2.35.1 instance (the stable and dev), once we sign-in (using the default usr/pwd admin:district), DHIS2 gets stuck on the dashboard loading animation:
[image]
Without anything in the catalina log, however the below is in the browser console logs:
[image]
/api/32/staticContent/logo_banner:1 Failed to load resource: the server responded with a status of 404 ()
136.68ccf293.chunk.js:2 Mixed Content: T…
Thanks,
Rithvik
2 Likes
Mahmud
(Mahmudul Islam)
23 February 2023 15:37
5
Thanks @rithvik , we followed the instructions of the thread and now subdomain is working fine!