Skip to content

Bash script to create a virtualhost in Apache for a Domain or Subdomain

Notifications You must be signed in to change notification settings

deepsh4h/virtualhosts_bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Apache Virtual Hosts Script

This is a batch script to create a virtualhost by just passing the domain or subdomain name

ABOUT

The script asks you for a domain and subdomain name, create a directory using the same domain or subdomain name in /var/www folder and creates a virtualhost with that configuration.

USAGE

  1. Download or clone the script
  2. type chmod +x virtual_host.sh
  3. Run by typping ./virtual_host.sh

TESTED ON

This script has been tested on Ubuntu 14.04 on AWS EC2

About

Bash script to create a virtualhost in Apache for a Domain or Subdomain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published