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.
- Host: GitHub
- URL: https://github.com/betaweb/apache2-virtualhost-generator
- Owner: betaWeb
- License: mit
- Created: 2018-02-13T09:38:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T12:22:50.000Z (over 8 years ago)
- Last Synced: 2025-12-28T01:00:01.472Z (6 months ago)
- Topics: apache2, gui, nodejs, vhosts, vuejs2
- Language: JavaScript
- Size: 358 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apache2-virtualhost-generator
> Apache2 virtualhost config file (on sites-available folder) generator build with NodeJS.

## 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`).