Apache base commands like ubuntu in another unix system
To perform the installation you must follow the following steps.
- Download the repository
- Have Apache2 installed
- run install.sh
- Add
Include conf/sites-enabled/
inside/etc/httpd/conf/httpd.conf
file
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
"
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"
a2ensite vhost.conf
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"
a2dissite vhost.conf
© 2019 Alejandro de Tovar
Licensed under the MIT License.
Please see License File for more information.