Here is my setup:
Dockerfile
FROM httpd:2.4-alpine
COPY ./static-files/ /usr/local/apache2/htdocs/
I ran the image and can access the files at localhost:3000/static-files/
I also have a Keycloak(12.0.1) running at localhost:8080/auth (I have already created all its properties like Realm, client and users etc.)
My requirement is something like that:
Whenever I access localhost:3000/static-files/ I should be redirected to Keycloak localhost:8080/auth for authentication and after successful login, I should be able to view static files available at localhost:3000/static-files/
Basically, how do I tell httpd server that my Keycloak is running at localhost:8080/auth?