Here is my workaround, first type:
# a2dissite (enter this command without any arguments, it will prompt you to select the next line)
Your options: siteA siteB siteC siteD
Which site do you want to disable (wildcards in order)?
Now you just copy the entire list of sites above ( siteA siteB siteC siteD ) and paste your answer into it, then press Enter.
The output will be:
removing dangling symlink /etc/apache2/sites-enabled/siteA.conf removing dangling symlink /etc/apache2/sites-enabled/siteB.conf removing dangling symlink /etc/apache2/sites-enabled/siteC.conf removing dangling symlink /etc/apache2/sites-enabled/siteD.conf
This approach will help us selectively choose a long list of site names that should be deleted or not.
Telvin nguyen
source share