{"id":24490388,"url":"https://github.com/armandphilippot/new-vhost","last_synced_at":"2026-04-11T08:39:02.613Z","repository":{"id":42466230,"uuid":"382346883","full_name":"ArmandPhilippot/new-vhost","owner":"ArmandPhilippot","description":"A script to automatize the creation of Apache virtual host (httpd only).","archived":false,"fork":false,"pushed_at":"2022-12-08T11:17:57.000Z","size":455,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T07:42:36.634Z","etag":null,"topics":["apache","httpd","mkcert","vhost","virtual-hosts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArmandPhilippot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-02T12:57:51.000Z","updated_at":"2023-03-08T19:36:23.000Z","dependencies_parsed_at":"2023-01-25T12:16:09.054Z","dependency_job_id":null,"html_url":"https://github.com/ArmandPhilippot/new-vhost","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArmandPhilippot%2Fnew-vhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArmandPhilippot%2Fnew-vhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArmandPhilippot%2Fnew-vhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArmandPhilippot%2Fnew-vhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArmandPhilippot","download_url":"https://codeload.github.com/ArmandPhilippot/new-vhost/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243670577,"owners_count":20328495,"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":["apache","httpd","mkcert","vhost","virtual-hosts"],"created_at":"2025-01-21T17:17:59.780Z","updated_at":"2025-12-30T11:47:06.355Z","avatar_url":"https://github.com/ArmandPhilippot.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# new-vhost\n\nCreate a new Apache Virtual Host on Manjaro Linux, and, probably the other distributions using `httpd`.\n\n## Requirements\n\n- [LAMP](https://wiki.archlinux.fr/LAMP)\n- [Manjaro](https://manjaro.org/) and probably the other distributions using `httpd`\n- [mkcert](https://github.com/FiloSottile/mkcert)\n\n## Use\n\nDownload `new-vhost` and make sure it as executable permission:\n\n```bash\nchmod +x new-vhost\n```\n\nRun the script in a terminal using `./new-vhost`.\n\nThe script will :\n- ask you some information to configure your vhost (name, webroot, workspace, certs path)\n- create a directory in your workspace named as your vhost and two subdirectory: one for the logs and another for the webroot,\n- generate a local certificate in the certs path provided\n- create the VirtualHost configuration file in `/etc/httpd/conf/vhosts/`,\n- include the configuration in `/etc/httpd/conf/httpd.conf`,\n- create a symbolic link between your vhost directory and the Apache directory (`/srv/http/`),\n- add two lines in the hosts file `/etc/hosts` (with and without `www`).\n\n## Disclaimer\n\nI use this script on my Manjaro distribution to save time. I understand what it does. If you do not know how to create a VirtualHost, I advise you to learn how to do it before using this script.\n\nThis script is designed to be used for a development environment. I do not recommend using it for a production environment.\n\nThis script will probably work for distributions using `httpd` and not `apache2`, but I have not tested it elsewhere than on Manjaro. Make sure the paths specified in the script exist before using it.\n\n## License\n\nThis script is open-source and licensed under the [MIT license](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmandphilippot%2Fnew-vhost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmandphilippot%2Fnew-vhost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmandphilippot%2Fnew-vhost/lists"}