Current collected state Current
Observed since 20 Oct, 16:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Simple CLI tool to create and delete easily virtual hosts in Apache.
**********************************************
A2SVM - Apache 2 Simple Virtualhost Manager
**********************************************
**a2svm** is a Simple CLI tool to create and delete easily virtualhosts in Apache.
usage: a2svm [-h] [-v] {mk,ls,rm,en,ds} ...
a2svm commands are:
* **mk** Create a virtualhosts
* **ls** Show managed virtualhosts on Apache server
* **rm** Delete a virtualhosts
* **en** Enable a virtualhosts
* **ds** Disable a virtualhosts
See 'a2svm <command> -h' for more information on a specific command.
PyPI package `<http://pypi.python.org/pypi/a2svm>`__
Sources `<https://github.com/cypx/a2svm>`__
Requirements
##############
a2svm need apache mod_macro which could be installed on debian 6 by the following command
.. code-block:: bash
$ aptitude install libapache2-mod-macro
Once mod_macro is avalaible some template could be created for use by a2svm like this one
.. code-block:: xml
<Macro vhost_standard $name $servername $directory>
<VirtualHost *:80>
ServerName $servername
DocumentRoot /var/www/$directory/public
<Directory /var/www/$directory>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error-$name.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access-$name.log combined
</VirtualHost>
</Macro>
#Comments beginning by "a2svm_make_command" are used to run external commands
#when vhost is created
#a2svm_make_command: /bin/mkdir -p /var/www/$directory/public /var/www/$directory/log
#a2svm_make_command: /bin/chown -R cyp:www-data /var/www/$directory
#Comments beginning by "a2svm_remove_command" are used to run external commands
#when vhost is removed
#a2svm_remove_command: /bin/tar czf /var/www/archive/$servername.tgz /var/www/$directory
#a2svm_remove_command: /bin/rm -rf /var/www/$directory
Installation
##############
Install it easily:
Using pip
**************
.. code-block:: bash
$ pip install a2svm
Warning! On some old distribution using Python 2.x, you could require to upgrade pip to support install, run:
.. code-block:: bash
$ pip install --index-url=https://pypi.python.org/simple/ --upgrade pip setuptools
Using easy_install
*********************
On most Linux distribution
.. code-block:: bash
$ easy_install a2svm
But on some, prerequisites are required, for example, on Debian 6
.. code-block:: bash
$ aptitude install python-pip
Upgrade
##########
Using pip
**************
.. code-block:: bash
$ pip --upgrade a2svm
Using easy_install
*********************
.. code-block:: bash
$ easy_install --upgrade a2svm
From sources
***************
.. code-block:: bash
$ git clone https://github.com/cypx/a2svm
$ cd a2svm
$ pip install -r requirements.txt
$ python setup.py install
Reminder
***************
To publish package on pypi
.. code-block:: bash
$ pip install twine
$ rm -rf dist
$ python setup.py sdist bdist_wheel
$ twine upload dist/*
pypistats · 67 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-19 – 2026-10-19 | 8 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-18 – 2026-10-18 | 5 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-17 – 2026-10-17 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-16 – 2026-10-16 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-15 – 2026-10-15 | 8 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-14 – 2026-10-14 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-13 – 2026-10-13 | 7 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-11 – 2026-10-11 | 7 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-10 – 2026-10-10 | 18 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-09 – 2026-10-09 | 21 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-08 – 2026-10-08 | 4 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-07 – 2026-10-07 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-06 – 2026-10-06 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-04 – 2026-10-04 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-03 – 2026-10-03 | 8 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-02 – 2026-10-02 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-10-01 – 2026-10-01 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-30 – 2026-09-30 | 14 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-29 – 2026-09-29 | 30 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-28 – 2026-09-28 | 9 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-27 – 2026-09-27 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-26 – 2026-09-26 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-25 – 2026-09-25 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-24 – 2026-09-24 | 19 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-23 – 2026-09-23 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-21 – 2026-09-21 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-20 – 2026-09-20 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-18 – 2026-09-18 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-16 – 2026-09-16 | 5 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-15 – 2026-09-15 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-14 – 2026-09-14 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-12 – 2026-09-12 | 4 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-10 – 2026-09-10 | 4 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-09 – 2026-09-09 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-07 – 2026-09-07 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-06 – 2026-09-06 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-05 – 2026-09-05 | 6 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-03 – 2026-09-03 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-09-01 – 2026-09-01 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-31 – 2026-08-31 | 4 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-28 – 2026-08-28 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-26 – 2026-08-26 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-24 – 2026-08-24 | 16 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-23 – 2026-08-23 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-21 – 2026-08-21 | 4 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-20 – 2026-08-20 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-18 – 2026-08-18 | 56 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-17 – 2026-08-17 | 10 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-16 – 2026-08-16 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-14 – 2026-08-14 | 6 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-13 – 2026-08-13 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-11 – 2026-08-11 | 6 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-09 – 2026-08-09 | 8 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-07 – 2026-08-07 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-06 – 2026-08-06 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-04 – 2026-08-04 | 11 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-03 – 2026-08-03 | 19 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-02 – 2026-08-02 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-08-01 – 2026-08-01 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-07-31 – 2026-07-31 | 4 | 2026-10-20T22:10:21.1254646Z |
| 2026-07-30 – 2026-07-30 | 3 | 2026-10-20T22:10:21.1254646Z |
| 2026-07-29 – 2026-07-29 | 12 | 2026-10-20T22:10:21.1254646Z |
| 2026-07-27 – 2026-07-27 | 6 | 2026-10-20T22:10:21.1254646Z |
| 2026-07-25 – 2026-07-25 | 2 | 2026-10-20T22:10:21.1254646Z |
| 2026-07-24 – 2026-07-24 | 1 | 2026-10-20T22:10:21.1254646Z |
| 2026-07-23 – 2026-07-23 | 4 | 2026-10-20T22:10:21.1254646Z |
| 2026-07-22 – 2026-07-22 | 3 | 2026-10-20T22:10:21.1254646Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.5 | 27 Oct 2021 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 16:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:254efe0ca4d727976cdc1a1a10a2e25b3bcfe05772283b330edf60d346fba4c3