Apache HTTP Server Configuration For ProxyPassReverseCookiePath

Working with SOA project, there was requirement to keep web UI interfaces, i.e. angular JSs and htmls, and APIs decoupled physically for development and for deployment.
Presentation implementation calls micro services to authenticate users. This requires special care at Apache Server, aka load balancer. Once authenticated, UI project should get coockies generated by web server so that it does not go in authentication loop.

This is what i did:

ProxyPass /service ajp://localhost:8088/service

ProxyPass /projectname/service ajp://localhost:8088/service
ProxyPassReverseCookiePath /service /projectname

ProxyPass /projectname ajp://localhost:8088/ui

Leave a Reply

Your email address will not be published. Required fields are marked *