Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voronkovich/apache2.plugin.zsh
ZSH plugin for Apache 2.
https://github.com/voronkovich/apache2.plugin.zsh
Last synced: about 2 months ago
JSON representation
ZSH plugin for Apache 2.
- Host: GitHub
- URL: https://github.com/voronkovich/apache2.plugin.zsh
- Owner: voronkovich
- License: lgpl-3.0
- Created: 2013-05-25T20:08:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-07-03T14:30:27.000Z (almost 8 years ago)
- Last Synced: 2024-01-24T15:10:35.871Z (4 months ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Lists
- awesome-zsh-plugins - apache2 - Adds aliases and functions for managing Apache2. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - apache2 - Adds aliases and functions for managing Apache2. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - apache2 - Adds aliases and functions for managing Apache2. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - apache2 - Adds aliases and functions for managing Apache2. (Plugins / Zinit (née zplugin))
README
apache2.plugin.zsh
==================ZSH plugin for Apache 2. I use this plugin in Ubuntu and I don't know is it properly works in another systems (it requires sudo).
Installation
------------Antigen:
antigen bundle voronkovich/apache2.plugin.zshOr clone this repo and add this into your .zshrc:
fpath=(path/to/cloned/repo $fpath)
Aliases and functions
---------------------+ a2rl - reload Apache configuration;
+ a2rs - restart Apache;
+ a2as - add new virtual host (see below);
+ a2ds - delete virtual host;
+ a2ens - enable virtual host;
+ a2dis - disable virtual host;
+ a2es - edit virtual host configuration. Configuration will be opened in editor that was defined by $EDITOR variable;
+ a2gs - go to host root directory;
+ a2enm - enable Apache module;
+ a2dim - disable Apache module.Adding new virtual host
-----------------------Usage:
a2as [OPTIONS] SITE_NAME [SITE_PATH]Options:
-t template name
-l add site to /etc/hosts
-h show this outputExamples:
a2as -lt symfony mysite.loc /var/www/mysite.loc
a2as mysite.loc ./public_html/mysite.loc
a2as mysiteYou can add your custom virtual hosts templates directory by defining $ZSH_PLUGIN_APACHE_SITES_CUSTOM_TEMPLATES variable in your .zshrc.
License
------Copyright (c) Voronkovich Oleg. Distributed under the GNU GPL.