Need to change URL context

I need to change the URL base context to something like http://my-awsome-server/fess/ to get to FESS instead of http://my-awsome-server.

You can use apache or nginx to rewrite a path.

I can rewrite /fess to the fess server, however, FESS context is /, so it redirect me to / where I have another application…

Do you use apache or nginx?

We use it in OpenShift. (Behind a route) The ‘‘Proxy’’ is HAProxy.

You need to rewrite Location header.



Is that Tomcat that run FESS… If so, where is the config and could I add a block like this…

<subsystem xmlns="urn:jboss:domain:undertow:3.1">
  <buffer-cache name="default"/>
  <server name="default-server">
      <http-listener name="default" socket-binding="http" redirect-socket="https"/>
      <host name="default-host" alias="localhost">
          <location name="/" handler="welcome-content"/>
          <filter-ref name="server-header"/>
          <filter-ref name="x-powered-by-header"/>

It’s not a plain Tomcat… You cannot add it.

OpenShfit HAProxy does forward HTTP headers “X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Port”, so I don’t get why I should change anything in our proxy. Also, we might be in a situation where there no possiblity to change the PROXY config if it’s in a share environment like OpenShift as a service (PAAS).

It would be interesting to have FESS deal with such behaviour as this could be a issue for other peoples running FESS in a container under OpenShift using HAProxy in front of it (This is their default setup/behaviour) (OpenShift ROUTES).

May I suggest a variable to enable such a behaviour or a config to change FESS context ?

I notice this parameter in


Changes to /fess

Fix my issue…

My pleasure :wink: