Giter Site home page Giter Site logo

vhoster's Introduction

VHoster

Apache Virtual Host Manager

Usage

Usage: vhoster [OPTIONS] COMMAND [ARGS]...

  Apache Virtual Host Manager

  https://github.com/GerardBalaoro/VHoster
  Copyright (c) Gerard Balaoro

Options:
  -v, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  config           Manage configuration variables
  explore          Browse current site path or site registered to DOMAIN
  forget (remove)  Unregister the current (or specified) PATH or DOMAIN
  link             Link current working directory to domain
  list             List all registered sites
  open             Open current site or site registered to DOMAIN in browser
  park (create)    Register the current (or specified) PATH to given DOMAIN
  rebuild          Rebuild all site configuration files
  refresh          Refresh configuration files of the site
  secure           Secure the site with a trusted TLS certificate
  set-root         Set document root for the site
  share            Generable public url for the site
  show             Display site information
  start            Restart all or specified services
  stop             Stop all or specified services

Installation

pip install git+https://github.com/GerardBalaoro/VHoster#egg=VHoster

Build Executable Using PyInstaller

pip install -U pyinstaller
py build.py

Configuration

The application will load the settings inside the config.json file in the user app data directory.

{
    "dns": {
        // Path to HOSTS File
        "file": "C:/Windows/System32/drivers/etc/hosts"
    },
    "apache": {
        // Path to Apache Executable
        "bin": "C:/Xampp/apache/bin/httpd.exe",
        // Path to Apache Configuration File
        "conf": "C:/Xampp/apache/conf/extra/httpd-vhosts.conf"
    },
    "paths": {
        // Where to store individual *.conf files
        "conf": "C:/Xampp/apache/sites/conf",
        // Where to store generated certificates and keys
        "certs": "C:/Xampp/apache/sites/certs"
    },
    "ngrok": {
        // Path to ngrok configuration file
        "config": "%USERPROFILE%/.ngrok2/ngrok.yml"
    },
    "sites": [
        {
            "domain": "localhost.test",
            // Working directory
            "path": "C:/Xampp/htdocs/",
            // Document root (if different from path)
            "root": "",
            "secure": true
        }
    ]
}

This application needs administrative privileges in order to access the Windows Hosts File

Credits

vhoster's People

Contributors

gerardbalaoro avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.