internal path in httpd
Added by V. Bekir Macit about 11 years ago
hi,
in note here http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WApplication.html#a2c1a10aadc0d7ed877b5715b42ca4911
still cant we use "/" instead of "?_=/"
thank you :)
Replies (4)
RE: internal path in httpd - Added by Koen Deforche about 11 years ago
Hey,
See the ---docroot argument of wthttpd in '---help':
--docroot arg document root for static files,
optionally followed by a
comma-separated list of paths with
static files (even if they are within a
deployment path), after a ';'
e.g. --docroot=".;/favicon.ico,/resourc
es,/style"
With this option, Wt will not use ugly internal paths ('?_=/').
Regards,
koen
RE: internal path in httpd - Added by Norbert Melzer about 11 years ago
I use "---deploy-path /app.wt" for my project. This ommits the ugly querystring from the URL and produces something like "example.com/app.wt/internal/path".
RE: internal path in httpd - Added by V. Bekir Macit about 11 years ago
hi again,
Koen, I already passes ---docroot=. ---docroot=.;/page1 (app has / and /page1 internal paths.) or and still same it doesn't affect
Nobert, yes it is working :)
RE: internal path in httpd - Added by Wim Dumon about 11 years ago
Hello Bekir,
you should only pass ---docroot once, and after the semicolon there should be a list of paths that should not be treated as internal paths. So for typical deployments, they will at least include /favicon.ico and /resources.
BR,
Wim.