Answers for "apache2 disable site"

1

apache2 disable site

# enable site
sudo a2ensite
 
# disable site
sudo a2dissite
 
# enable an apache2 module
sudo a2enmod
 
# e.g. a2enmod php4 will create the correct symlinks in mods-enabled to allow the module to be used. In this example it will link both php4.conf and php4.load for the user
 
# disable an apache2 module
sudo a2dismod
 
# force reload the server:
sudo  /etc/init.d/apache2 force-reload
Posted by: Guest on February-26-2021
2

a2ensite example

a2ensite /etc/apache2/sites-available/new-domain.conf
//-----------------
a2dissite /etc/apache2/sites-available/new-domain.conf
Posted by: Guest on July-31-2020
-1

a2ensite example.

a2ensite /etc/apache2/sites-available/new-domain.conf

//-----------------

a2dissite /etc/apache2/sites-available/new-domain.conf
Posted by: Guest on June-27-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language