Geal / PilotSSH-scripts

A collection of scripts usable with the PilotSSH iOS app
http://pilotssh.com
MIT License
52 stars 14 forks source link

Apache script demands debian, but should use techniques that are available everywhere #12

Open xenji opened 11 years ago

xenji commented 11 years ago

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.

I'm working on a PR for that.

Geal commented 11 years ago

Yes, mapping the command to apachectl would be better feature-wise, and more portable.