Skip to content

Releases: virtualhost/virtualhost.sh

1.35

12 Jul 17:31
Compare
Choose a tag to compare
  • Added support for IPv6 default local address ::1, thanks @davereid.
  • Fix when specifying document root interactively, thanks @chrisantonellis.
  • VirtualHosts are now cross-compatible between Apache 2.2.x and 2.4+, rather than detecting the version and generating different directives.
  • When using --edit Apache is restarted after returning from your editor.
  • Suppress password message when running virtualhost.sh without prefixing sudo while within the sudo timeout/grace period.
  • Fix checking for updates while running virtualhost.sh --list without sudo (the last update check directory and file are now owned by $USER). Note that update checking needs to run once with sudo to fix the permissions.
  • Checking for new releases is only done once per day.
  • virtualhost.sh --list is now pickier about how it matches ServerName and DocumentRoot. Only relevant for users who have customized their VirtualHosts.
  • Running virtualhost.sh by itself no longer requires sudo.

1.34

29 Nov 17:55
Compare
Choose a tag to compare
  • Fix for using the GitHub API to check for new releases.

1.33

29 Nov 17:36
Compare
Choose a tag to compare
  • Edit functionality added, sudo virtualhost.sh --edit example.dev opens
    the example.dev VirtualHost in your $EDITOR.
  • Now uses the GitHub API to check for new releases.
  • Checking for new releases is only done once per hour.

1.32

18 Oct 15:31
Compare
Choose a tag to compare
  • Moved the project to a GitHub organization: https://github.com/virtualhost/virtualhost.sh
  • OS X Yosemite (Apache 2.4.x) compatibility, thanks @rubenvarela @Nainterceptor! Your existing VirtualHosts need to be updated, see http://httpd.apache.org/docs/2.4/upgrading.html#access. An automated upgrade process is planned, see #63.
  • An optional second argument has been added to specify the DocumentRoot for cases where folder matching is not appropriate:
    sudo virtualhost.sh example.dev ~/Sites/my-example.dev
  • sudo is no longer required when running virtualhost.sh --list.
  • New CREATE_INDEX option to suppress writing the default index.html if an index is not already present.
  • The script no longer overrides variables that are already set in the environment, so anything you would normally set in ~/.virtualhost.sh.conf can be set inline as well:
    SKIP_BROWSER="yes" virtualhost.sh foobar.dev
  • The script now exits early when the DocumentRoot folder can't be created.