Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattmezza/vhost-creator
A simple bash script to create virtual host vhost with apache on Ubuntu or CentOS
https://github.com/mattmezza/vhost-creator
apache2 bash centos httpd script ubuntu vhost virtualhost
Last synced: 18 days ago
JSON representation
A simple bash script to create virtual host vhost with apache on Ubuntu or CentOS
- Host: GitHub
- URL: https://github.com/mattmezza/vhost-creator
- Owner: mattmezza
- License: mit
- Created: 2016-05-03T13:57:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-15T20:14:27.000Z (over 3 years ago)
- Last Synced: 2024-10-11T07:09:57.797Z (about 1 month ago)
- Topics: apache2, bash, centos, httpd, script, ubuntu, vhost, virtualhost
- Language: Shell
- Size: 4.88 KB
- Stars: 25
- Watchers: 3
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
vhost-creator
============This is a useful bash script that will let you save time creating vhosts for you.
It supports both ubuntu and centos (be careful to write `ubuntu` or `centos` in lowercase).
Instructions:
- `mkdir ~/scripts && cd $_`
- `wget https://raw.githubusercontent.com/mattmezza/vhost-creator/master/vhost-creator.sh`
- `chmod +x vhost-creator.sh`
- `sudo ./vhost-creator.sh`
- follow Instructionsor for the most adventurous just run `curl -s https://raw.githubusercontent.com/mattmezza/vhost-creator/master/install.sh | sh` to install it globally for your user (you can use the script afterwards with `sudo vhost-creator`)
Don't forget to add a A record from your DNS pointing to your web server IP address.
You can also mv the script to a system wide bin folder or add it to your bash profile.
The original idea was this [one](https://gist.github.com/mattmezza/2e326ba2f1352a4b42b8)
###### Thanks to:
- `alexnogard` for his original version
- [Fred Bradley](https://github.com/fredbradley) for [this](https://gist.github.com/fredbradley/296bce8eba544647f10f) gist.