Skip to content

Instantly share code, notes, and snippets.

@leihog
Created July 25, 2011 07:28
Show Gist options
  • Save leihog/1103702 to your computer and use it in GitHub Desktop.
Save leihog/1103702 to your computer and use it in GitHub Desktop.
Lighttpd include all vhosts in path in to lighttpd.conf
#!/bin/bash
#
# Use this to include all vhost files in to lighttpd.conf
# In lighttpd.conf add the line: include_shell "/etc/lighttpd/vhosts.sh"
#
VHOST_PATH="/etc/lighttpd/vhosts/*"
for f in $VHOST_PATH
do
cat $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment