I’d love to be able to change the webpy static directory without the need to set up and run nginx locally. Right now, it seems webpy will only create a static directory if /static/ exists. In my case, I want to use /foo/bar/ as my static directory, but couldn’t find any info related to configuring this (other than running apache or nginx locally).
This is for local use only, not production. Any ideas? Thanks
If you need to have different directory for the same path then you may subclass web.httpserver.StaticMiddleware or write your own middleware like this (it tricks StaticApp by modifying PATH_INFO):
Or you can create symlink named “static” and point it to another directory.