crivion/autogenerate-vhosts-osx

此包的最新版本(dev-main)没有可用的许可信息。

通过php-cli在您的mac os机器上管理本地虚拟主机

dev-main 2020-10-30 07:48 UTC

This package is auto-updated.

Last update: 2021-12-29 03:30:12 UTC


README

自动生成本地机器vhost(mac osx)

为mac os x自动生成本地vhosts

  • PHP-cli工具

  • 网站目录必须以.local结尾才能被选中

  • 例如 /path/site.local 将变成 http://local.site

define('SITES_PATH', '/Users/your-user/Sites');
define('VHOSTS_FILE', '/etc/apache2/extra/httpd-vhosts.conf');
define('HOSTS_FILE', '/etc/hosts');

使用方法(必须是超级用户)

sudo php index.php

PHP-Cli 输出示例

Alt text