Bug #6644
closedNon-trivial --deploy-path is Broken
10%
Description
For a working demonstration of the problem, see https://github.com/limitedAtonement/wtothererror currently at HEAD (71276bb). To use it, clone the project and do ./mkrun
. You'll likely need to configure some things to make it work with your environment: staticresourcessrc
in Makefile
, LD_LIBRARY_PATH
in resources/run
, etc.
This is about as good a configuration as I have been able to come up with, but it still has a problem: requesting http://localhost:8080/app (no trailing slash) causes a segmentation fault.
Wt appears to expect information after the trailing slash of the deploy-path
.
Updated by Roel Standaert about 6 years ago
- Status changed from New to Resolved
Yeah, it's supposed to give you a 404 when you go to http://localhost:8080/app. I fixed that now.
Updated by Roel Standaert about 6 years ago
(Or rather: that's what Wt 3 does. I don't know what the best thing to do is there.)
Updated by lm at about 6 years ago
I know what I would do, and I would think any half-way sane webmaster would do the same: forward http://localhost:8080/app
to http://localhost:8080/app/
. It would be nice if wt would take care of this for us, but I've seen this behaviour elsewhere: https://en.cppreference.com/w/cpp/algorithm works, but https://en.cppreference.com/w/cpp/algorithm/ doesn't.
Thanks for correcting this!
Updated by Roel Standaert about 6 years ago
Yeah, it's one of those things that is often treated as if it's the same, but it isn't.
Updated by Roel Standaert almost 6 years ago
- Status changed from Resolved to Closed