Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change endpoints ? #13

Open
wkulesza opened this issue Sep 9, 2021 · 1 comment
Open

Change endpoints ? #13

wkulesza opened this issue Sep 9, 2021 · 1 comment

Comments

@wkulesza
Copy link

wkulesza commented Sep 9, 2021

Hi,
is there a way to configure the endpoints, so that web interface doesnt have /web, but just root of tomcat? When using docker and starting Transitime, we're trying to use Apache Proxy Pass to block the tomcat port. Proxy pass does require to add /web to apache subdomain. - i.e. I can't proxy pass sudomain.domain.com -> domain.com:8080.

@vsperez
Copy link
Member

vsperez commented Sep 9, 2021

For this there are two answers.

One is to replace the content of webapps/ROOT/ (tomcat) with the content of web application. This one I have not tested, but it should work.

The other is to add this on apache:

ProxyPass /web http://server:8080/web/
ProxyPassReverse /web http://server:8080/web/
ProxyPass / http://server:8080/web/
ProxyPassReverse / http://server:8080/web/

With this configuration:
1.- Everything with web path will be redirected to web, so if some url return by the server contains that path will work.
2.- The root path will be redirected to web.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants