cannot login to rapidpro server over https

32 views
Skip to first unread message

abdo bkp

unread,
Oct 8, 2024, 2:13:57 AM10/8/24
to rapidpro-dev
I installed rapidpro on server and I can open it via IP 
after I configured https 
the main page open with link to login 

once in entered user name and password 


the url redirect to 
and get error 
 404 Not Found
nginx/1.18.0 (Ubuntu)


Untitled2.png
Untitled.png

Shamim Nakayiza

unread,
Oct 8, 2024, 3:00:53 AM10/8/24
to abdo bkp, rapidpro-dev
Did you collect static files, also you need to tell nginix where to find your static files.

Regards,

Nakayiza Shamim | Software Developer

The Medical Concierge Group | Level 2, Wing B, Mirembe Business Centre,

Plot 46, Lugogo By-pass, Kampala.

P.O.Box 4036, Kampala, Uganda.

Tel + (256) (0) 417 747000 | Mobile +256 (0) 702835028

Email: shamim....@tmcg.co.ug  Website: tmcg.co.ug



--
You received this message because you are subscribed to the Google Groups "rapidpro-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rapidpro-dev/ad737f95-ec16-435e-86cf-7cd841e60fd2n%40googlegroups.com.

abdo bkp

unread,
Oct 8, 2024, 3:37:07 AM10/8/24
to rapidpro-dev
I added to nginx : 

 location /static/ { alias /opt/rapidpro/static/; # Path to your static files##############
    }
        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;

Shamim Nakayiza

unread,
Oct 8, 2024, 4:03:09 AM10/8/24
to abdo bkp, rapidpro-dev
Use sitestatic instead of static, also change this to /opt/rapidpro/sitestatic/

Regards,

Nakayiza Shamim | Software Developer

The Medical Concierge Group | Level 2, Wing B, Mirembe Business Centre,

Plot 46, Lugogo By-pass, Kampala.

P.O.Box 4036, Kampala, Uganda.

Tel + (256) (0) 417 747000 | Mobile +256 (0) 702835028

Email: shamim....@tmcg.co.ug  Website: tmcg.co.ug


abdo bkp

unread,
Oct 8, 2024, 4:21:24 AM10/8/24
to rapidpro-dev
i have added 

  location / {
        proxy_pass http://127.0.0.1:8000;  # Your backend
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
}

and work fine
thanks for your support 
Reply all
Reply to author
Forward
0 new messages