Code Monkey home page Code Monkey logo

virtualhost's Introduction

VirtualHost

Script en shell para crear VirtualHost en ubuntu con apache2

Licencia: New BSD

Autor: Iván D. Meléndez - 2013

Uso

  • Darle permisos de ejecución

      $ chmod +x vh.sh
    
  • Creando un VirtualHost

      $ sudo ./vh.sh --create                        
              
      Deseas definir el virtualhost en la ubicación /var/www? [S/n]: (enter)
      Ingresa el nombre del virtualhost (ej: domain.com): prueba1.com
      Deseas indicar el alias 'www' al dominio? [S/n]: s
      La dirección IPv4 del server es 127.0.0.1? [S/n]: (enter)
      * [INFO] Se creará el virtualhost 'prueba.com' bajo en la ruta /var/www
      Deseas continuar? [S/n]: (enter)
    
  • Creando un VirtualHost en una ruta específica

      $ sudo ./vh.sh --create /home/user/www-app
      
      Deseas definir el virtualhost en la ubicación /home/user/www-app? [S/n]: (enter)
      Ingresa el nombre del virtualhost (ej: domain.com): prueba2.com
      Deseas indicar el alias 'www' al dominio? [S/n]: s
      La dirección IPv4 del server es 127.0.0.1? [S/n]: (enter)
      * [INFO] Se creará el virtualhost 'prueba.com' bajo en la ruta /home/user/www-app
      Deseas continuar? [S/n]: (enter)
    
  • Eliminando un VirtualHost

      $ sudo ./vh.sh --delete
      
      Ingresa el nombre del virtualhost a eliminar: prueba1.com
      Estas seguro de eliminar el virtualhost: prueba1.com? [S/n]: (enter)
    

Nota

El script creará una carpeta dentro del virtual host llamada private la cual no se debe eliminar

virtualhost's People

Contributors

argordmel avatar

Watchers

 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.