This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
3 changed files with
56 additions and
0 deletions
|
|
|
@ -152,6 +152,12 @@ dotfiles:
|
|
|
|
|
actions:
|
|
|
|
|
- start_services
|
|
|
|
|
|
|
|
|
|
lighttpd:
|
|
|
|
|
src: lighttpd
|
|
|
|
|
dst: /etc/lighttpd
|
|
|
|
|
actions:
|
|
|
|
|
- sv_update
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################
|
|
|
|
|
profiles:
|
|
|
|
|
|
|
|
@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
server.modules += ("mod_fastcgi")
|
|
|
|
|
|
|
|
|
|
# FCGI server
|
|
|
|
|
# ===========
|
|
|
|
|
#
|
|
|
|
|
# Configure a FastCGI server which handles PHP requests.
|
|
|
|
|
#
|
|
|
|
|
index-file.names += ("index.php")
|
|
|
|
|
fastcgi.server = (
|
|
|
|
|
# Load-balance requests for this path...
|
|
|
|
|
".php" => (
|
|
|
|
|
# ... among the following FastCGI servers. The string naming each
|
|
|
|
|
# server is just a label used in the logs to identify the server.
|
|
|
|
|
"localhost" => (
|
|
|
|
|
"bin-path" => "/usr/bin/php-cgi",
|
|
|
|
|
"socket" => "/tmp/php-fastcgi.sock",
|
|
|
|
|
# breaks SCRIPT_FILENAME in a way that PHP can extract PATH_INFO
|
|
|
|
|
# from it
|
|
|
|
|
"broken-scriptfilename" => "enable",
|
|
|
|
|
# Launch (max-procs + (max-procs * PHP_FCGI_CHILDREN)) procs, where
|
|
|
|
|
# max-procs are "watchers" and the rest are "workers". See:
|
|
|
|
|
# https://redmine.lighttpd.net/projects/1/wiki/frequentlyaskedquestions#How-many-php-CGI-processes-will-lighttpd-spawn
|
|
|
|
|
"max-procs" => "4", # default value
|
|
|
|
|
"bin-environment" => (
|
|
|
|
|
"PHP_FCGI_CHILDREN" => "1" # default value
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
@ -0,0 +1,20 @@
|
|
|
|
|
server.port = 80
|
|
|
|
|
server.username = "http"
|
|
|
|
|
server.groupname = "http"
|
|
|
|
|
server.document-root = "/srv/http"
|
|
|
|
|
server.errorlog = "/var/log/lighttpd/error.log"
|
|
|
|
|
dir-listing.activate = "enable"
|
|
|
|
|
index-file.names = ( "index.html" )
|
|
|
|
|
mimetype.assign = (
|
|
|
|
|
".html" => "text/html",
|
|
|
|
|
".txt" => "text/plain",
|
|
|
|
|
".css" => "text/css",
|
|
|
|
|
".js" => "application/x-javascript",
|
|
|
|
|
".jpg" => "image/jpeg",
|
|
|
|
|
".jpeg" => "image/jpeg",
|
|
|
|
|
".gif" => "image/gif",
|
|
|
|
|
".png" => "image/png",
|
|
|
|
|
"" => "application/octet-stream"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
include "conf.d/fastcgi.conf"
|