Show all Apache virtual hosts and their config files
list apache virtual hosts | apache serving wrong site | find apache default vhost | which file defines the virtualhost | apache2ctl | virtualhost | configurationapache2ctl -SShows, per IP and port, which virtual hosts Apache knows, which one is the default host, and the file and line where it is defined. Essential when a domain serves the wrong site, since usually the default host kicks in because no ServerName or ServerAlias matches.
Note: On Plesk, Apache usually listens behind nginx on ports 7080 and 7081, so the virtual hosts show up there.
Also searched as
- list apache virtual hosts
- apache serving wrong site
- find apache default vhost
- which file defines the virtualhost