-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[OTHER] how to set a subpath like "example.com/it_tool/xxxx" #1062
Comments
and i |
I found a workaround with apache2 (same configuration could be implemented in nginx), basically you need to do some rewrites, but would be nice if Redirect 301 "/it-tools" "/it-tools/"
<Location /it-tools/>
ProxyPreserveHost On
ProxyPass http://localhost:9070/ retry=0 timeout=5
ProxyPassReverse http://localhost:9070/
RequestHeader set Connection ""
AddOutputFilterByType INFLATE;SUBSTITUTE text/html application/javascript
SubstituteMaxLineLength 2000K
Substitute "s|href=\"|href=\"/it-tools/|inq"
Substitute "s|src=\"|src=\"/it-tools|inq"
Substitute "s|\"assets/|\"it-tools/assets/|inq"
Substitute "s|BASE_URL:\"/\"|BASE_URL:\"/it-tools/\"|inq"
</Location> You can find example here: https://sitnikov.eu/it-tools/ |
same request |
+1 |
Hi @doubleJazzCat, @AndrewDi, @GAS85, @momomobinx, related to #423, implemented in my fork, if you arr interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools) |
nice guy, may the force be with u |
@sharevb I did test it twice and seems not working for me... |
Hey, actually configuration above was updated, Substitute of |
@GAS85 thanks for clarifying. I got it working through my nginx.
However, some things are broken like ASCII Art Text Generator, Adding to Favourites inside each tool and Web App. I think its acceptable now though. |
Hi @GAS85 and @imantoniojuan , I just integrated things related to #423 |
You right... I will check what is wrong there. I thought I did test it all. |
Hi @ , implemented BASE_URL (and config sample) in my fork, and published a Detailed explaination to make it work: https://github.com/sharevb/it-tools?tab=readme-ov-file#docker-compose-for-hosting-in-a-it-tools-subfolder and https://github.com/sharevb/it-tools?tab=readme-ov-file#docker-compose-for-hosting-in-a-it-tools-subfolder |
ASCII Art Text Generator does not work for now, it is nothing to do with current solution. Everything else is working now. |
Hi @GAS85, latest version of |
how to set a subpath like "example.com/it_tool/xxxx"
The text was updated successfully, but these errors were encountered: