On 10/30/2020 12:34 PM, Michael wrote: [snip] >>>> vhosts.conf - define my web-site, but I commented everything out in that >>>> file (it is empty) and restarted apache: >>>> /etc/init.d/apache2 restart >>>> >>>> And I can still display my web page. >>>> How is it possible??? >>> >>> I would assume it is possible to still display your website because the >>> main apache2.conf and/or ./sites-available/000-default.conf contain some >>> default settings which specify the DocumentRoot where your website >>> filesystem resides. >>> >>> Your approach to start from first principles by commenting out individual >>> configurations is sound, because you can check in this way what works and >>> what does not. >> >> I check all configuration files for "DocumentRoot" and all the files >> have DocumentRoot commented out (so nothing is active) >> grep -Rnw '/etc/apache2/' -e 'DocumentRoot' >> >> Restarted apache 2.4 and the web-page is still loading :-/ > > ServerRoot specified somewhere? Increase log verbosity and see what it > reports, otherwise I'm out of ideas!
Solved. For some reason or another in my /etc/hosts file I had: 10.0.0.112 server.ca And apache was accessing my production box1 box1 - production box2 - work in progress I changed in hosts to: 10.0.0.112 www.server.ca And apache was resolving accessing box2 only. Strange.