Remove context path on server


How to remove the context path from the URL?
For example: to

The showcontext path setting is not working, so I am guessing we need to set it up in Apache httpd settings but I am not sure how?

FYI, I am using Hippo 13.1.0. In earlier versions we could package the delivery application as ROOT.war which would take care of this automatically but not anymore.

Please help.


Yes, Apache it is… see

Also have hst:showcontextpath=false

Cheers, Jeroen

No, it is not working.

I am actually using a load balancer to point to the IP. It removed the port automatically probably because I gave the port as 8080. I made those changes based on the documentation but it didnt work.

The page is returning 404 error and when I append the url with /site it is still showing the website but without any css.

Am I missing something?

I am using below configuration.

<VirtualHost *:80>
ServerAlias *

LoadFile /usr/lib64/
LoadModule proxy_html_module modules/
ProxyRequests off
RequestHeader unset Accept-Encoding

RewriteEngine on
RewriteRule ^(/.*)$1 [P]
SetOutputFilter proxy-html
ProxyHTMLExtended on
ProxyHTMLDoctype XHTML
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse /
ProxyPassReverseCookiePath /site /
ProxyHTMLURLMap /site /

<VirtualHost *:443>
ServerAlias *
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse /
ProxyPassReverseCookiePath /site /
</VirtualHost>This text will be blurred

Just an update. Nothing worked out so I handled the redirection in AWS load balancer.