The apache script takes the debian sites-enabled/available directory structure as precondition. I this could be solved without sticking to the type of linux. The minimum would be using apachectl for the sites-enabled part:
mario@xenjibook ~/D/S/P/apache> apachectl -T -D DUMP_VHOSTS
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server www.trivago.local (/private/etc/apache2/extra/httpd-vhosts.conf:8)
port 80 namevhost www.trivago.local (/private/etc/apache2/extra/httpd-vhosts.conf:8)
port 80 namevhost rockmongo.site (/private/etc/apache2/extra/httpd-vhosts.conf:18)
port 80 namevhost xhprof.site (/private/etc/apache2/extra/httpd-vhosts.conf:27)
Syntax OK
This should work on every linux, unix and OSX. The sites-available stuff might be candy for those people who use debian-like systems.
The apache script takes the debian sites-enabled/available directory structure as precondition. I this could be solved without sticking to the type of linux. The minimum would be using apachectl for the sites-enabled part:
This should work on every linux, unix and OSX. The sites-available stuff might be candy for those people who use debian-like systems.
I'm working on a PR for that.