New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

http-multi-site

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-multi-site

http-multi-site ============

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

http-multi-site

Stability - 2 Example Usage for Linux

An example layout for handling multiple website/services using nodejitsu/forever module. Modify proxy.json to match your layout for webservices urls. Modify bin/nodejs file ROOT_DIR to match the location of your http-multi-site installation, and copy bin/nodejs to /etc/init.d to auto-start and stop on system reboot. Each website/webservice should be a nodejs http server (ex. express, http, etc.) that can be launched from node.

proxy.json contents
{
  "hostnameOnly": "true", //required to be true for nodejitsu/forever to handle the hostport option properly
  "domains": {
    "example1.com": { //domain name for site 1
       "hostport": "localhost:3003", //url location for webservice/site 1
       "dir": "/home/nodejs/websites/example1.com" //full path to the root directory of example1.com
    },
    "example2.com": { //domain name for site 2
       "hostport": "localhost:3002", //url location for webservice/site 1
       "dir": "/home/nodejs/websites/example2.com" //full path to the root directory of example2.com
    },
    "example3.com": { //domain name for site 3
       "hostport": "localhost:3001", //url location for webservice/site 1
       "dir": "/home/nodejs/websites/example3.com" //full path to the root directory of example3.com
    }
  }
}

FAQs

Package last updated on 13 Feb 2014

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