Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

nginx-apache-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

nginx-apache-site

Create Apache or Nginx website configs and optional Certbot SSL certificates on Ubuntu.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

nginx-apache-site

nginx-apache-site is a merged replacement for create-apache-site and create-nginx-site.

It creates:

  • Website directory and starter static files in /var/www/<domain>/public_html
  • Apache or Nginx virtual host config
  • Optional Certbot SSL certificate

The package also ships compatibility wrappers:

  • create-apache-site
  • create-nginx-site

Install

npm install -g nginx-apache-site

Usage

Unified command:

nginx-apache-site --domain example.com --server nginx
nginx-apache-site --domain example.com --server apache
nginx-apache-site --domain example.com --server auto
nginx-apache-site --domain example.com

If --server is omitted, the CLI prompts on interactive terminals with default auto. In non-interactive runs, it defaults to auto directly.

Compatibility wrappers:

create-apache-site --domain example.com
create-nginx-site --domain example.com

SSL options

  • --ssl always run Certbot
  • --no-ssl skip Certbot
  • no SSL flag: interactive prompt when running in a terminal

Extra Certbot controls:

  • --certbot-email admin@example.com
  • --certbot-staging
  • --yes auto-confirm SSL prompt

Common examples

# Nginx with SSL and Certbot email
nginx-apache-site -d example.com -s nginx --ssl --certbot-email admin@example.com

# Apache without SSL
nginx-apache-site -d example.com -s apache --no-ssl

# Preview actions only
nginx-apache-site -d example.com -s nginx --ssl --dry-run

Requirements

  • Ubuntu/Debian-style Apache or Nginx layout
  • Root privileges (sudo) for non-dry-run mode
  • Certbot plugin for your server type if using SSL

Development tests

npm test
npm run test:linux

npm test runs local shell tests with mocked system commands, so it does not modify your host web server setup.

npm run test:linux adds Linux-specific smoke checks. CI runs both test suites on ubuntu-latest for every push and pull request.

Keywords

apache

FAQs

Package last updated on 09 Feb 2026

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