In my server,django and nginx is deployed on ECS fargate and connected to loadbalancer, but URL is transferd by Akamai
https://www.example.com/company/playground/* -> https://amazonloadbalancer/*
However, there comes a few problem,such as
- Problem 1 static
Access https://www.exmplae.com/company/playground/top
will be jumped to https://amazonloadbalancer/top
correctly,
but static file url will be https://www.exmplae.com/static/main.js
while the real file is located https://www.example.com/company/playground/static/main.js
/company/playground
is omitted so, can not be reached.
- Problem 2 admin transfered
accesing https://www.example.com/company/playground/admin
the url is transferred by django to https://www.example.com/admin/login/?next=/admin/
/company/playground
is omitted again, so can not be reached.
Is there any good setting for this purpose??