Skip to content

lelandf/apache-automator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

apache-automator

Script has been adapted from the following Digital Ocean community question answer by Justin Ellingwood: Semi-automating Nginx server block set up on Ubuntu with a script?

What apache-vhost.sh does

Automates an otherwise tedious Apache virtual host set up.

  • Creates web root
  • Creates virtual host file
  • Enables virtual host block
  • Restarts Apache

Usage

Make sure to make script executable by running the following command (may require sudo).

chmod +x ./apache-vhost.sh

Do this once, then run the following command each time you want to create a virtual host.

./apache-vhost.sh example.com

Assumptions

  • Your Apache virtual hosts are going to be set up in the /var/www/ directories.

About

Basically the same thing as Nginx Automator, but for Apache.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages