Skip to content

rych-hysh/NginxVirtualHostAdmin

Repository files navigation

NginxEnabledHostController

enable / disable Nginx's virtual host.

Usage

run

npm build

then delete 'frontInDev' directory.

Put 'NginxEnabledHostController' directory in your server and set the directory to document root for this site.

Easiest way (NOT RECOMMENDED due to unsafe)

sudo visudo

Add the following to the end of file.

[username] ALL=NOPASSWDL: /usr/bin/ln
[username] ALL=NOPASSWDL: /usr/bin/unlink


# Installation (developer)

run 

```bash
npm install

Start

run

docker-compose up

or

npm start

to start api server and web server.

About

Enable / disable your sites hosted by nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published