Skip to content

A simple bash script that creates a virtual host in Apache on Mac

Notifications You must be signed in to change notification settings

MattSkala/apache-vhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Apache VirtualHost Console

A simple bash script that creates a virtual host in Apache on Mac.

How to use

sudo sh ./vhost.sh domain path

(e.g. sudo sh ./vhost.sh myweb.dev /Users/skala/Developer/Projects/myweb/www)

What it does

  • Adds a domain mapping to /etc/hosts
  • Adds VirtualHost to /private/etc/apache2/extra/httpd-vhosts.conf
  • Restarts Apache

About

A simple bash script that creates a virtual host in Apache on Mac

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages