Giter Club home page Giter Club logo

vhost-manager's Introduction

Vhost Manager 1.0

I have created this small php symfony based command line application to scratch my own itch.

It'll allow user to manage virtual hosts using the commands, without each time going into the host files.

The application is only Windows user.

Requirements

php >= 7.0.0

Install

git clone https://github.com/vivekdhumal/Vhost-Manager.git

cd Vhost-Manager

composer install

*also make sure to add YOUR_DRIVE\Vhost-Manager\bin path to windows environment PATH variables.

Configuration

At the root of the application you'll get the config.sample.php file rename it to config.php file where you can change the path of your host files as per your local setup.

return [
    /**
     * This apache httpd-vhosts.conf file path.
     */
    'apache_host_path' => 'E:\xampp\apache\conf\extra\httpd-vhosts.conf',
    /**
     * Your windows hosts file path, generaly it'll remain same.
     */
    'windows_host_path' => 'C:\Windows\System32\drivers\etc\hosts',
    /**
     * Your workspace path, this could be your xamp or wamp path.
     * for wamp it'll look like E:\wamp\www
     */
    'workpace_path' => 'E:\xampp\htdocs',
    /**
     * local ip address.
     */
    'local_ip' => '127.0.0.1',
];

Create Host

To create a host run the following command.

vhost create "test/public" "testing.dev"

This will take document root as first argument and domain as second argument.

List Hosts

You can view all your virtual hosts right from your terminal, just hit the following command.

vhost all

Remove Host

You can also remove virtual hosts from your host files, just hit the following command.

vhost remove "testing.dev"

This will take domain as a argument.

License

The Vhost Manager is open-sourced software licensed under the MIT license.

Code of Conduct

Read More

vhost-manager's People

Contributors

vivekdhumal avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

groovenectar

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.