Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Publish jdone log with lighttpd in Debian way.

  • Loading branch information...
commit e2f038f2184e7b0189b5c31dd541bffc693d4cb9 1 parent c87ccee
@gavenkoa gavenkoa authored
Showing with 29 additions and 2 deletions.
  1. +29 −2 INSTALL.rst
View
31 INSTALL.rst
@@ -125,9 +125,36 @@ Create/update ``index.html`` with link to ``jdone-cgi-simple.bash`` in
Start/restart lighttpd::
- $ kill -s INT `cat /var/run/lighttpd.pid`
- $ lighttpd -f /srv/www/lighttpd.conf
+ $ sudo kill -s INT `cat /var/run/lighttpd.pid`
+ $ sudo lighttpd -f /srv/www/lighttpd.conf
Open http://localhost in your favorite Web browser (Firefox suitable for this
purpose) and navigate ``"Job done"`` URL!
+Publish jdone log with lighttpd in Debian way.
+----------------------------------------------
+
+Create config ``/etc/lighttpd/conf-available/90-jdone.conf``::
+
+ $HTTP["url"] =~ "^/jdone-cgi-simple.bash" {
+ alias.url = ( "/" => "/srv/www/" )
+ cgi.assign = ( "jdone-cgi-simple.bash" => "/bin/bash" )
+ setenv.add-environment = ( "HOME" => "/home/user" )
+ }
+
+don't forget enable corresponding modules in ``/etc/lighttpd/lighttpd.conf``::
+
+ server.modules += (
+ "mod_alias",
+ "mod_cgi",
+ "mod_setenv",
+ )
+
+Enable config::
+
+ $ sudo lighty-enable-mod jdone
+
+Restart server::
+
+ $ sudo service lighttpd restart
+
Please sign in to comment.
Something went wrong with that request. Please try again.