How to Stop a specific virtualhost in apache2
2
votes
1
answer
1811
views
let's say I want to stop only the *example2* VirtualHost. How do I do it?
sudo service apache2 stop
will stop all the VirtualHosts. I want *example1* to keep running
ServerName www.example1.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/example1
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName www.example2.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/example2
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Asked by Aman Deep
(21 rep)
Dec 9, 2017, 05:32 PM
Last activity: Dec 9, 2017, 05:35 PM
Last activity: Dec 9, 2017, 05:35 PM