Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Last active January 30, 2017 12:02
Show Gist options
  • Save keithrozario/295f14fdf204e832a40da74aba68f95c to your computer and use it in GitHub Desktop.
Save keithrozario/295f14fdf204e832a40da74aba68f95c to your computer and use it in GitHub Desktop.
https://github.com/RoverWire/virtualhost/blob/master/virtualhost.sh
http://www.grymoire.com/Unix/Sed.html#uh-42
Use SED to modify:
-Document root to current wordpress install
-Load standard ApacheCFG from Git (optional)
-Use link above to create virtual host--might be enought...but I prefer SED
Generic Apache Config, but using SED to point Apache to $WPDIR -- best approach, as you don't have to worry about /var/www/html or other wp-config anomalies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment