在ubuntu中自动创建apache2虚拟主机

apache2-vh的Python项目详细描述


为Ubuntu开发的Apache2虚拟主机创建程序

##安装

pip install apache2-vh

用法

您可以看到所有命令和基本用法键入:

vh –help

usage: vh server_name folder_name [-h] [-m2] [-a SERVER_ALIAS] [-d DIRECTORY_ROOT] [-p PORT] [-c CONF_NAME]

最少使用两个参数:

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)

但您还有一些可选参数:

-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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Android改造响应不等于邮递员响应   bean的spring初始化失败;嵌套的例外是java。lang.IllegalArgumentException:Pointcut格式不正确:应为“')”   java在运行时传递可选的未知参数   java Android:无法使用密码保护条目   java无法从SimpleIntegerProperty转换为属性<Integer>   java Ibatis:有没有办法在sqlmap xml中的Ibatis resultmap子选择中添加行处理程序?   java如何使用ant脚本运行maven项目?   java如何在DesignGridLayout库中动态创建JButton值?   java JPA多事务管理器   java Eclipse RCP,为编辑器添加了一个新视图   从源文件夹导入时,不会显示Java图像   使用hadoop2设置java单节点集群。4.0与cygwin   java如何连接图像?   JavaJPQL:向数据库中已经存在的值添加一个int值