Avatar of knfitz
knfitz
Flag for United States of America asked on

How to list what sites are running on an apache web server

I have no experience with apache. I am trying to confirm which server is a running a certain website. My servers are apache. How can I see a list of websites that are running on an apache server?
Apache Web ServerWeb Servers

Avatar of undefined
Last Comment
Dave Baldwin

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
E-Z-D

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Jan Bacher

cd /path/to/httpd_config_file/
grep -i servername httpd.conf
grep -i serveralias httpd.conf

Your installation may have an "extras" directory.  If you, you'll need to also check the vhosts file there.
Dave Baldwin

E_Z_D's link is a good one, at least for Ubuntu and Debian.  Apache2 on those systems use several directories to control what sites and mods are being used.  'sites-enabled' will tell you which 'virtual hosts' are supposed to be running.
Your help has saved me hundreds of hours of internet surfing.
fblack61