Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

static-site-container

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

static-site-container

A simple static web servier for handling multiple sites with different domains.

  • 0.0.18
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

static-site-container

Sometimes there are multiple static sites for testing or development. But we don't want to deploy multiple nodejs instances or other production web server like nginx. So the static-site-cotnainer will help to handle this.

Features

  • Support multiple sites on single node instance.
  • Support multiple domains for each site.
  • Support serve static gzipped file by connect-gzip-static.
  • Support folder index page (index.htm or index.html).
  • Support express router (Coming soon).

Install

$npm install static-site-container -g

Usage

$static-site-container --root /multiple-sites-root --port 80
 

multiple site folder structure:

multiple-sites-root/
    sites/
        www.abc.com/
            site-config.json        
            public/
                index.htm
                ...
        www.xyz.com/
            public/
                index.html
                ...
            

Site Config File

static-site-container will read config file named site-config.json under site folder.

Example

 {
    "public": "public",
    "domains": ["www.abc.com","abc.com"],
    "port": 80
}

License

MIT © Yang Chen

Keywords

FAQs

Package last updated on 21 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc