On Thu, Feb 05, 2015 at 06:06:00PM +0200, Dotan Cohen wrote: > 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 >
They're just line-numbers. They were much more useful when apache configs were one big monolithic file - but now, you would usually expect to find each site declaration start at the start of its own file. -- Shaun -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
