{"id":20901599,"url":"https://github.com/willfarrell/dotvhosts","last_synced_at":"2025-05-13T03:30:53.428Z","repository":{"id":8727809,"uuid":"10400784","full_name":"willfarrell/dotVhosts","owner":"willfarrell","description":"Lightweight VirtualHost manager for Mac. ","archived":false,"fork":false,"pushed_at":"2014-12-05T01:04:10.000Z","size":4458,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T15:47:55.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willfarrell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-31T08:23:38.000Z","updated_at":"2019-07-11T18:03:58.000Z","dependencies_parsed_at":"2022-09-19T07:01:40.706Z","dependency_job_id":null,"html_url":"https://github.com/willfarrell/dotVhosts","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2FdotVhosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2FdotVhosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2FdotVhosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2FdotVhosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfarrell","download_url":"https://codeload.github.com/willfarrell/dotVhosts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253867348,"owners_count":21976208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T11:36:10.679Z","updated_at":"2025-05-13T03:30:49.586Z","avatar_url":"https://github.com/willfarrell.png","language":"PHP","readme":"# .vhosts\nLightweight VirtualHost manager for Mac. A MAMP alternative.\n\n## Features\n- Add and modify localhost VirtualHosts\n- Autoload `.vhosts` files from project folders and instert them into global `httpd-vhosts.conf`\n\n![Alt text][screenshot]\n\n## Install\nRun in Terminal: `curl -s https://raw.github.com/willfarrell/.vhosts/master/boostrap.sh -o boostrap.sh \u0026\u0026 bash boostrap.sh \u0026\u0026 rm boostrap.sh`\n\n**Requirements:**\n\n1. Apache 2 (Built into Mac OS X)\n\n**Optional:**\n\n1. [Hosts.prefpane](https://github.com/specialunderwear/Hosts.prefpane/downloads)\n2. MySQL [dev.mysql.com](https://dev.mysql.com/downloads/mysql/) - [Useful settings](http://www.sequelpro.com/docs/Where_are_MySQLs_Files)\n3. nginx `brew install nginx`\n4. redis [redis.io](http://redis.io/download)\n\n\n##.vhosts File\nYou can add a .vhosts file into the root of your project directory and it will automatically be loaded into your VirtualHosts the next time you visit `http://vhosts.localhost`. Project folders in `~/Sites` are scanned by default, you can add a custom one by adding to the `dirs` array in `json/config.json`. `__DIR__` will automatically be replaced with the project directory.\n\n### users/username.conf\n```bash\n# Defaults applied to all directories listed in json/config.json['dirs']\n\u003cDirectory \"/Users/username/.vhosts\"\u003e\n    Options Indexes MultiViews Includes ExecCGI\n    AllowOverride All\n    Order Deny,Allow\n    Allow from all\n\u003c/Directory\u003e\n```\n\n### Sample .vhosts File\n```bash\n# VirtualHosts for Yeoman projects\n\u003cVirtualHost *\u003e\n    ServerName yeoman\n    DocumentRoot __DIR__\n\u003c/VirtualHost\u003e\n\n\u003cVirtualHost *\u003e\n    ServerName app.yeoman\n    DocumentRoot __DIR__/app\n\u003c/VirtualHost\u003e\n\n\u003cVirtualHost *\u003e\n    ServerName dist.yeoman\n    DocumentRoot __DIR__/dist\n\u003c/VirtualHost\u003e\n\n\u003cVirtualHost *\u003e\n    ServerName test.yeoman\n    DocumentRoot __DIR__\n    \u003cDirectory\u003e\n        DirectoryIndex test/e2e/runner.html\n    \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\n### Flow of Information\n![Alt text][process]\n\n## Terminal\n### Apache\n```bash\nsudo apachectl -k start\nsudo apachectl -k restart\nsudo apachectl -k stop\n```\n\n### nginx\n```bash\nsudo nginx\nsudo nginx -s stop\n```\n\n### MySQL\n```bash\nsudo /usr/local/mysql/support-files/mysql.server start\nsudo /usr/local/mysql/support-files/mysql.server stop\n```\n## Roadmap\n- port support\n- nginx support\n- debug on clean machine of clean install\n- yum package to monitor for new .vhosts files\n\n[process]: ./screenshots/process.png \"Flow of VirtualHost settings\"\n[screenshot]: ./screenshots/screenshot.png \"Screenshot of .vhosts Dashboard\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fdotvhosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfarrell%2Fdotvhosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fdotvhosts/lists"}