Project

General

Profile

internal path in httpd


Replies (4)

RE: internal path in httpd - Added by Koen Deforche about 10 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 10 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 10 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 10 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.

    (1-4/4)