Make your virtual host for apache2 automatically in ubuntu
# Apache2 virtual host creator for Ubuntu
pip install apache2-vh
You can see all the commands and basic usage typing:
usage: vh server_name folder_name [-h] [-m2] [-a SERVER_ALIAS] [-d DIRECTORY_ROOT] [-p PORT] [-c CONF_NAME]
The minimal usage is with 2 arguments:
server_name Your server name (ex.: blabla.com) folder_name The folder name where your project is in the document root (default is /var/www/html if you have in a different place set it with -dr)
But you have a few more optional arguments:
-m2, –magento2 Virtual Host para magento 2 (if you are creating virtual host for magento2) -a SERVER_ALIAS, –server_alias SERVER_ALIAS Add a server alias (ex.: www.blabla.com) -d DIRECTORY_ROOT, –directory_root DIRECTORY_ROOT Full path of your apache document root that will be set in the virtual host (default is /var/www/html) -p PORT, –port PORT Change the listening port (default is 80) -c CONF_NAME, –conf_name CONF_NAME Add a diferent name to your conf file (without the .conf extension) default is the name of your folder_name (ex.: blabla -> file created blabla.conf)
Feel free to use, copy, extend or contribute to this project, if you want to reuse a mention to this project is appreciated, but I don’t really care if you don’t do it. This is a open source project without any warranty or something like that.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size apache2-vh-0.0.2.tar.gz (2.9 kB)||File type Source||Python version None||Upload date||Hashes View|