How to disable subdomain in apache2?

view full story

http://serverfault.com – I've enabled the 'www' subdomain host record that points to mysite.com on my domain registrar's DNS editor a few days ago and the changes have propagated. However I would like to temporarily disable it. 1) Why does www.mysite.com work even though I've commented out the following code in /etc/apache2/sites-available/mysite? #<VirtualHost *:80> #ServerAlias www.mysite.com #DocumentRoot /mywebsite #</VirtualHost> Is it even needed to make changes in apache2 to enable the subdomain? 2) How can I temporarily disable the 'www' subdomain from apache2? (HowTos)