Releases: virtualhost/virtualhost.sh
Releases · virtualhost/virtualhost.sh
1.35
- 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
1.33
1.32
- 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.