1.0.2 • Published 8 years ago

xampp-virtual-host v1.0.2

Weekly downloads
6
License
ISC
Repository
github
Last release
8 years ago

Create virtual host on XAMPP

Why use npm?

Because I'm too lazy to open files and edit manually :)

Installation

  $ npm install xampp-virtual-host -g

Usage

Please run Git BASH with Admin rights if you need Admin rights to access specific folders.

Config.json

Change URL's and Ports to ones that you wish to use. By default they are Windows default.

  • xampp_vhost_directory : /xampp/apache/conf/extra/httpd-vhosts.conf
  • xampp_files_directory: C:/xampp/htdocs/
  • hosts_directory: /Windows/System32/drivers/etc/hosts
  • hosts_ip_address: 127.0.0.1
  • xampp_apache_port: 80

Commands

To add a new site "mydevsite.dev" to htdocs/mydevsitefolder

 $ vhost mydevsite.dev mydevsitefolder
 //Restart XAMPP after successful command.

To add a new wordpress site "mydevsite.dev" to htdocs/mycompany/mydevsitefolder

 $ vhost mydevsite.dev mycompany/mydevsitefolder/wordpress
 //Restart XAMPP after successful command.
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago