Giter Site home page Giter Site logo

cmdvirtualhost's Introduction

๐Ÿ’ป CmdVirtualHost

Create Apache virtual host using command line for Laragon.

โฌ‡ Installation:

Download the raw apvh.bat file from here and add it to the system path.

๐Ÿ“ Before use:

Change the SSL files directory on line 9 according to yours.

i.e. set SSL_PATH=F:/laragon/etc/ssl/ -> set SSL_PATH=Your/Laragon/installation/path/etc/ssl/

๐Ÿ”จ Usage:

Open the Terminal and cd into the directory where all your virtual hosts are stored. (for me: F:\laragon\etc\apache2\sites-enabled)

apvh {sitename} {directory} {ssl}

โš™ Where:

  1. sitename: Sitename containing the .domain name.
  2. directory: The full (absolute) path to the site directory.
  3. ssl: Use ssl to have the virtual host for SSL else empty.

๐Ÿง  Remember:

  1. The site directory name must not contain trailing slahes (\ or /).
  2. This script assumes that you have added the virtual host entry to hosts (C:\Windows\System32\drivers\etc) file and in alt_names section in the openssl template file (for me: F:\laragon\usr\tpl\openssl.conf.tpl)

๐Ÿ“ƒ Acronyms:

  1. apvh === Apache virtual host.
  2. India == Indians never delay in anything.

๐Ÿ˜Š Happy coding!

๐Ÿ™

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.