configuration - Local static server without trailing slash -


what's simplest way run static server without trailing slashes locally? ideally, i'd use tools come installed latest version of os x.

unfortunately,

python -m simplehttpserver 8000 

and

ruby -run -ehttpd . -p8000 

both 301 redirect /about /about/.

i want opposite.

see more static server one-liners.

note: static site talks rest api uses rack.

unless has better solution, use rack::static.

true, rack doesn't come installed latest version of os x, need anyway run rest api static site talks to.

see heroku dev center: creating static sites in ruby rack.

please update answer completed code. thanks!


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -