×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Apache
Posted by: Mare Novak
Added: Mar 12, 2014 8:19 PM
Views: 18
Tags: no tags
enable/disable Apache2 virtual hosts
  1. #/etc/apache2/sites-available
  2. # enable site
  3. sudo a2ensite
  4.  
  5. # disable site
  6. sudo a2dissite
  7.  
  8. # enable an apache2 module
  9. sudo a2enmod
  10.  
  11. # 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
  12.  
  13. # disable an apache2 module
  14. sudo a2dismod
  15.  
  16. # force reload the server:
  17. sudo  /etc/init.d/apache2 force-reload