0

Is there a way for send a request to apache web server and it be returned list of all virtualHosts, name or ip address? Can be done it with some api?

I Know that executing apache2ctl -S I get info on virtualhost

VirtualHost configuration:

*:80 is a NameVirtualHost
        default server **first.example.com** (/etc/httpd/conf.d/first.example.com.conf:1)
 
Main DocumentRoot: "**/var/www/html**"

I don't have access to apache2ctl program on pc server.

My goal is obtaining a small list of links from private network o home network. Urls can get from html files but files are in var/www/. Url can get try the combinations of words and test with http HEAD request address.

I want list ip address writings in virtualHosts config file for downloading main html page of first.example.com.

with regard

1 Answers1

0

Apache has no such API.

You can use a script on the server to run apache2ctl.

Gerald Schneider
  • 19,757
  • 8
  • 52
  • 79