Make your virtual host for apache2 automatically in ubuntu
Project description
# Apache2 virtual host creator for Ubuntu
## Installation
pip install apache2-vh
## Usage
You can see all the commands and basic usage typing:
vh –help
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)
## Notes
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file apache2-vh-0.0.2.tar.gz
.
File metadata
- Download URL: apache2-vh-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e435e6aed1002cc02f8ac800866094c4082f3094ab52598ac538282e3fff678 |
|
MD5 | 5faeedea3a34fa4b1cc663d34bd04f9f |
|
BLAKE2b-256 | 2c32b3d52b52bbfb1bb904286c09946b4e9166330bbfcd6249cec72d2278698b |