What are the numbers following Apache settings output paths?
Dotan Cohen
dotancohen at gmail.com
Thu Feb 5 16:06:00 UTC 2015
Hello, I would appreciate some help understanding the output of Apache -S
$ apachectl -S
/usr/sbin/apachectl: 87: ulimit: error setting limit (Operation not permitted)
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:443 is a NameVirtualHost
default server foobar.com (/etc/apache2/sites-enabled/foobar-ssl:2)
port 443 namevhost foobar.com (/etc/apache2/sites-enabled/foobar-ssl:2)
port 443 namevhost alice.com
(/etc/apache2/sites-enabled/alice.com-ssl:2)
*:80 is a NameVirtualHost
default server localhost (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost foobar.com (/etc/apache2/sites-enabled/foobar:1)
port 80 namevhost alice.com (/etc/apache2/sites-enabled/alice.com:1)
Syntax OK
Question: What is the :1 or :2 at the end of each config file listed,
for instance:
/etc/apache2/sites-enabled/foobar:1
I am writing a Python script to parse this output, and I don't want to
disregard this information without understanding it. Thank you!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
More information about the ubuntu-server
mailing list