Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/venespana/apache_commands
Apache base comands like ubuntu in another unix system
https://github.com/venespana/apache_commands
apache apache2 bash bash-script comands httpd httpd-server linux manjaro shell shell-script unix virtual-host virtual-hosts
Last synced: about 2 months ago
JSON representation
Apache base comands like ubuntu in another unix system
- Host: GitHub
- URL: https://github.com/venespana/apache_commands
- Owner: venespana
- License: mit
- Created: 2019-09-08T16:18:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-14T11:51:40.000Z (over 5 years ago)
- Last Synced: 2024-04-28T04:25:24.569Z (9 months ago)
- Topics: apache, apache2, bash, bash-script, comands, httpd, httpd-server, linux, manjaro, shell, shell-script, unix, virtual-host, virtual-hosts
- Language: Shell
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apache_commands
Apache base commands like ubuntu in another unix system
## Installation
To perform the installation you must follow the following steps.
1. Download the repository
2. Have Apache2 installed
3. run install.sh
4. Add `Include conf/sites-enabled/` inside `/etc/httpd/conf/httpd.conf` file# DESCRIPTION
This page documents the a2ensite and a2dissite commands.
It is not an error to enable a site which is already enabled, or to disable one which is already disabled.
Apache treats the very first virtual host enabled specially as every request not matching any actual directive is being redirected there.
Therefore, it is recommended to name the vhost with the following format "`[numeric_order]-[name].conf`"
## a2ensite
This is a script that enables the specified site (which contains a block) within the apache2 configuration.
It is done by creating symlinks within "/etc/httpd/sites/sites-enabled" obtained from "/etc/httpd/sites/sites-available"
### Examples
```bash
a2ensite vhost.conf
```## a2dissite
This is a script that disable the specified site within the apache2 configuration.
It is done by removing created symlinks in "/etc/httpd/sites-enabled"
### Examples
```bash
a2dissite vhost.conf
```# License
© 2019 Alejandro de Tovar
Licensed under the MIT License.
Please see [License](./LICENSE) File for more information.