0

I'm working on a big web application which uses Apache 2.2 with a complicated configuration of virtual hosts that are defined in many distributed vhost.conf files which are then included into httpd.conf.

Is there any simple and quick way of listing out all of the various virtual host configurations in one place?

2 Answers 2

3

Running httpd -S will show you the defined VirtualHosts.

0
0

You can get a listing of all active virtual hosts along with what port and name they run on and what line of what config file they can be found on by using the status operator on the apache init scripts:

service httpd status

If your distro doesn't include that option in the init scripts, you can call it manually using

/path/to/httpd -t -f /path/to/main/config

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .