From: <abe...@us...> - 2012-03-01 00:49:16
|
Revision: 5472 http://astlinux.svn.sourceforge.net/astlinux/?rev=5472&view=rev Author: abelbeck Date: 2012-03-01 00:49:09 +0000 (Thu, 01 Mar 2012) Log Message: ----------- lighttpd, add feature if directory '/mnt/kd/phoneprov' exists, enables both HTTP and HTTPS access to /phoneprov/ in that directory Modified Paths: -------------- branches/1.0/package/lighttpd/lighttpd.conf branches/1.0/package/lighttpd/lighttpd.init Modified: branches/1.0/package/lighttpd/lighttpd.conf =================================================================== --- branches/1.0/package/lighttpd/lighttpd.conf 2012-02-28 16:06:08 UTC (rev 5471) +++ branches/1.0/package/lighttpd/lighttpd.conf 2012-03-01 00:49:09 UTC (rev 5472) @@ -4,6 +4,7 @@ "mod_access", "mod_accesslog", "mod_auth", + "mod_alias", "mod_fastcgi", "mod_proxy" ) @@ -139,3 +140,5 @@ @CLI_PROXY_SERVER@ ) @CLI_PROXY_SERVER@} +@PHONEPROV@alias.url = ( "/phoneprov/" => "/mnt/kd/phoneprov/" ) + Modified: branches/1.0/package/lighttpd/lighttpd.init =================================================================== --- branches/1.0/package/lighttpd/lighttpd.init 2012-02-28 16:06:08 UTC (rev 5471) +++ branches/1.0/package/lighttpd/lighttpd.init 2012-03-01 00:49:09 UTC (rev 5472) @@ -71,6 +71,11 @@ else cli_proxy_server="#" fi + if [ -d /mnt/kd/phoneprov ]; then + phoneprov="" + else + phoneprov="#" + fi sed -i -e "s|@HOSTNAME@|${HOSTNAME}|g" \ -e "s|@HTTPDIR@|${httpdir}|g" \ @@ -83,6 +88,7 @@ -e "s|@HTTPSCGI@|${httpscgi}|g" \ -e "s|@IPV6@|${ipv6}|g" \ -e "s|@CLI_PROXY_SERVER@|${cli_proxy_server}|g" \ + -e "s|@PHONEPROV@|${phoneprov}|g" \ /tmp/etc/lighttpd.conf } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |