0.0.18 • Published 10 years ago

static-site-container v0.0.18

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago