/Apache-domain-adder

A short way to add a domain to your Apache2 server.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Apache Domain Adder

A short way to add a domain to your Apache2 server.

OMÜ CEng

GitHub issues GitHub forks GitHub stars GitHub license

Pre Install

We are assuming that you have been installed Apache. If you are not please lookup: https://www.google.com.tr/search?q=apache2+install

Turkish Installation Guide (Türkçe Kurulum Rehberi): http://serhatcileri.com/apache-server-domain-ekle-kolay/

Install

Download domainadd.sh to your computer. You can use:

wget https://raw.githubusercontent.com/ileri/Apache-domain-adder/master/domainadd.sh

Then make it executable

chmod 4555 domainadd.sh

Finally copy it to one of the PATH s'

You can use:

sudo cp domainadd.sh /usr/bin/domainadd
sudo cp domainadd.sh /usr/bin/adddomain

It is just that simple!

Usage

You can use as:

sudo adddomain

or

sudo domainadd

press Enter, then enter your domain address.

Or you may prefer:

sudo adddomain domainname.com

or

sudo domainadd domainname.com

License

GPL-3.0