Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

redbooth/https-pushstate-server

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https-pushstate-server

License

A simple static http/https file server that works with HTML5 Pushstate.

Defaults all routes to index.html in the given root directory. Treats all other files to be static, and routes urls with the given static directories to make them relative to root.

For example,

  • localhost or localhost/a/pushstate/route will always return index.html.

  • localhost/assets/emoji.png or localhost/a/pushstate/route/assets/emoji.png will always return assets/emoji.png when assets directory is given as one of the static directories.

Install

npm install git+ssh://github.com/aerofs/https-pushstate-server.git --save

Usage

$ https-pushstate-server -r rootDir -p 8000 -s -c certFile -k keyFile -d assets,styles,scripts

About

A simple static file server that works with HTML5 Pushstate and HTTPS.

Resources

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.