%s/\/www\/logs\//\/var\/log\/lighttpd\/
%s/lighttpd\.error/error/
%s/\/www\/pages\//\/home\/lighttpd\/html\//
%s/#server\.pid\-file/server.pid-file/
%s/\/tmp\/lighttpd\/cache\/compress\//\/home\/lighttpd\/cache\/
%s/^#server\.username.*$/server.username            = "nobody"/
%s/^#server\.groupname.*$/server.groupname            = "nobody"/
%s/\/usr\/local\/bin\/php/\/usr\/bin\/php-cgi/
%s/\(vhost\.server-root.*=\).*$/\1 "\/home\/lighttpd\/vhosts\/"/
/SSL engine/,/pem/d
i
#### SSL engine
#$SERVER["socket"] == "0.0.0.0:443" {
#  ssl.engine                  = "enable"
#  ssl.pemfile                 = "/home/lighttpd/ssl/server.pem"
#  server.errorlog             = "/var/log/lighttpd/error-ssl.log"
#  accesslog.filename          = "/var/log/lighttpd/access-ssl.log"
#  server.document-root        = "/home/lighttpd/html-ssl"
#}
.
w
q