I'm trying to run PLA using distributed docker container behind proxy. Problem is that all assets are tried to load from wrong URL. After setting X-Forwarded-Proto and Host headers correctly i managed to get host part correctly from assets but they are still loaded from root directory.
Setting X-Forwarded-Prefix didn't have any effect.
I'm running nginx as proxy and have following configuration:
location /phpldapadmin/ {
proxy_set_header Host example.com;
proxy_set_header X-Forwarded-Prefix /phpldapadmin/;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://127.0.0.1:8080/;
}
Going to URL https://example.com/phpldapadmin/login shows correct page but all assets (css, images, javascript etc) are missing.
I'm trying to run PLA using distributed docker container behind proxy. Problem is that all assets are tried to load from wrong URL. After setting
X-Forwarded-ProtoandHostheaders correctly i managed to get host part correctly from assets but they are still loaded from root directory.Setting
X-Forwarded-Prefixdidn't have any effect.I'm running nginx as proxy and have following configuration:
Going to URL
https://example.com/phpldapadmin/loginshows correct page but all assets (css, images, javascript etc) are missing.