Change URL root

8 views
Skip to first unread message

Irene Vagionakis

unread,
Mar 15, 2021, 11:55:09 AM3/15/21
to EFES users

Dear all,
I have been asked to change the root of URLs of an EFES instance from '/' to 'xxx/', so that we get something like 'https://sitedomain.it/xxx/en/' without having to request a subdomain. How can this be done?
Thanks!
Irene

Jamie Norrish

unread,
Mar 15, 2021, 5:14:42 PM3/15/21
to efes-...@googlegroups.com
On Mon, 2021-03-15 at 08:55 -0700, Irene Vagionakis wrote:


> I have been asked to change the root of URLs of an EFES instance from
> '/' to 'xxx/', so that we get something like '
> https://sitedomain.it/xxx/en/
> without having to request a subdomain. How can this be done?

I take it that you do not want EFES to handle requests to /, only
requests to /xxx/. In this case, this should be handled by the web
server that proxies through to the server running EFES. For example, if
you are running Apache HTTPD as your front-end web server, use
mod_proxy and mod_proxy_html:

ProxyPass "/xxx/" "http://my.efes.server:8080/"
ProxyPassReverse "/xxx/" "http://my.efes.server:8080/"
ProxyHTMLEnable On

Jamie

Irene Vagionakis

unread,
Mar 16, 2021, 2:23:05 AM3/16/21
to efes-...@googlegroups.com
Thank you!
However, for this instance of EFES (on whose setup I have no direct control) I think that there is no Apache configuration at all: the readdressing of ports is done through Docker and it is not possible to add a sort of subdomain from there.

Is there a way to do it internally from EFES? I have tried to edit at line 199 of sw/jetty/etc/webdefault.xml the `<url-pattern>/</url-pattern> and it seems to work (with some adjustments needed to the handling of the multilingualism of the site): is it a correct way to do it or could it cause unexpected consequences?
Thanks!
Irene


-------- Messaggio originale --------
Da: Jamie Norrish <ja...@artefact.org.nz>
Data: 15/03/21 22:14 (GMT+01:00)
Oggetto: Re: [efes-users] Change URL root

--
You received this message because you are subscribed to the Google Groups "EFES users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to efes-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/efes-users/5082fa6cf585c74f43b1f8f694fc52430292c50d.camel%40artefact.org.nz.

Jamie Norrish

unread,
Mar 16, 2021, 2:35:35 AM3/16/21
to efes-...@googlegroups.com
On Tue, 2021-03-16 at 06:23 +0000, Irene Vagionakis wrote:

> Is there a way to do it internally from EFES? I have tried to edit at
> line 199 of sw/jetty/etc/webdefault.xml the `<url-pattern>/</url-
> pattern> and it seems to work (with some adjustments needed to the
> handling of the multilingualism of the site): is it a correct way to
> do it or could it cause unexpected consequences?

Yes, that should work without consequences within EFES. Whether there
are issues with anything else wanting to be served outside of /xxx/ is
beyond the scope of that piece of configuration.

Jamie

Irene Vagionakis

unread,
Mar 16, 2021, 3:02:49 AM3/16/21
to efes-...@googlegroups.com
Perfect, thanks!


-------- Messaggio originale --------
Da: Jamie Norrish <ja...@artefact.org.nz>
Data: 16/03/21 07:35 (GMT+01:00)
Oggetto: Re: [efes-users] Change URL root

--
You received this message because you are subscribed to the Google Groups "EFES users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to efes-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages