An open API service indexing awesome lists of open source software.

https://github.com/betaweb/apache2-virtualhost-generator

Apache2 virtualhost config file (on sites-available folder) generator build with NodeJS.
https://github.com/betaweb/apache2-virtualhost-generator

apache2 gui nodejs vhosts vuejs2

Last synced: 2 months ago
JSON representation

Apache2 virtualhost config file (on sites-available folder) generator build with NodeJS.

Awesome Lists containing this project

README

          

# apache2-virtualhost-generator

> Apache2 virtualhost config file (on sites-available folder) generator build with NodeJS.

![Editer une configuration](/static/images/pic1.png)

## Installation
Run the following command to build the project:
```SHELL
npm run build
```
Then, check that you have su permissions. If not, add this line on `/etc/sudoers` (replace `` by your current username) :
```SHELL
ALL=(ALL) NOPASSWD: ALL
```
## Run application
To run application, just run the following command :
```SHELL
# via NPM
npm run serve:prod

# Via NodeJS
node server.js
```

The server starts by default on port `3000`. To launch app with other port, or define other environment variables, you can edit `.env` file.
```SHELL
APP_ENV="production"
API_ONLY=false

API_PROTOCOL="http"
API_HOST="localhost"
API_PORT=8905
API_URL=

APP_PROTOCOL=http
APP_PORT=3000

CONF_PATH="/etc/apache2/"
CONF_EXTENSION=".conf"
CONF_AVAILABLES="sites-available/"
CONF_ENABLED="sites-enabled/"
```

If you only want to launch the API, you can set `API_ONLY` env variable value at `true`.
It allows you to access the app via an HTTP server like Apache2, Nginx etc (the entry point is `build/index.html`).