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

Provide a way to setup the webinterface in a subdirectory #601

Open
urzparat opened this issue Mar 12, 2024 · 3 comments
Open

Provide a way to setup the webinterface in a subdirectory #601

urzparat opened this issue Mar 12, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@urzparat
Copy link

Although there is the option LT_URL_PREFIX you cannot use LibreTranslate in a subdirectory, because the resources in static/ are always in the root directory. Therefore you need to use a hacky proxy configuration to make it work:

ProxyPass /subdirectory http://localhost:5000/
ProxyPassReverse /subdirectory http://localhost:5000/
ProxyPreserveHost On

ProxyPass /static http://localhost:5000/static
ProxyPass /js http://localhost:5000/js
ProxyPass /frontend http://localhost:5000/frontend
ProxyPass /languages http://localhost:5000/languages
ProxyPass /translate http://localhost:5000/translate
@github-actions github-actions bot added the enhancement New feature or request label Mar 12, 2024
@urzparat
Copy link
Author

Just checked the issues not the pr's. Closing in favor of #586 .

@urzparat
Copy link
Author

urzparat commented May 7, 2024

Reopening this issue, because #586 is closed.

@urzparat urzparat reopened this May 7, 2024
@pierotofy
Copy link
Member

We'd welcome a pull request to fix this.

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

No branches or pull requests

2 participants