User Tools

Site Tools


lighttpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lighttpd [2020/05/20 23:36] francescolighttpd [2020/09/17 08:35] (current) francesco
Line 1: Line 1:
-Per qualche mese ho usato questo server web in locale su Ubuntu per lavorare sulla mia DokuWiki e per poi sincronizzarla con quella che gira sotto FreeBSD/nginx su firminmaillard.org.+Per qualche mese ho usato questo webserver in locale su Ubuntu per lavorare sulla mia DokuWiki e per poi sincronizzarla con quella che gira sotto FreeBSD/nginx sul Kimsufi di OVH.
  
 Questo era il file di configurazione: Questo era il file di configurazione:
Line 1172: Line 1172:
 # IPv4 listening socket # IPv4 listening socket
 $SERVER["socket"] == "0.0.0.0:80" { } $SERVER["socket"] == "0.0.0.0:80" { }
 +</code>
 +
 +**È inoltre necessario modificare anche il file**:
 +
 +<code>
 +/usr/local/etc/lighttpd/modules.conf
 +</code>
 +
 +per attivare il modulo FastCGI
 +
 +<code>
 +root@freebsd:/usr/local/www/dokuwiki # cat /usr/local/etc/lighttpd/modules.conf
 +#######################################################################
 +##
 +##  Modules to load
 +## -----------------
 +##
 +## at least mod_access and mod_accesslog should be loaded
 +## all other module should only be loaded if really neccesary
 +##
 +## - saves some time
 +## - saves memory
 +##
 +## the default module set contains:
 +##
 +## "mod_indexfile", "mod_dirlisting", "mod_staticfile"
 +##
 +## you dont have to include those modules in your list
 +##
 +## Modules, which are pulled in via conf.d/*.conf
 +##
 +## - mod_accesslog     -> conf.d/access_log.conf
 +## - mod_compress      -> conf.d/compress.conf
 +## - mod_status        -> conf.d/status.conf
 +## - mod_webdav        -> conf.d/webdav.conf
 +## - mod_cml           -> conf.d/cml.conf
 +## - mod_evhost        -> conf.d/evhost.conf
 +## - mod_simple_vhost  -> conf.d/simple_vhost.conf
 +## - mod_mysql_vhost   -> conf.d/mysql_vhost.conf
 +## - mod_trigger_b4_dl -> conf.d/trigger_b4_dl.conf
 +## - mod_userdir       -> conf.d/userdir.conf
 +## - mod_rrdtool       -> conf.d/rrdtool.conf
 +## - mod_ssi           -> conf.d/ssi.conf
 +## - mod_cgi           -> conf.d/cgi.conf
 +## - mod_scgi          -> conf.d/scgi.conf
 +## - mod_fastcgi       -> conf.d/fastcgi.conf
 +## - mod_proxy         -> conf.d/proxy.conf
 +## - mod_secdownload   -> conf.d/secdownload.conf
 +## - mod_expire        -> conf.d/expire.conf
 +##
 +## NOTE: The order of modules in server.modules is important.
 +##
 +## Modules which gate requests (e.g. mod_access, mod_auth) or modify
 +## requests (e.g. mod_alias, mod_setenv) should be listed before
 +## modules which complete requests (e.g. mod_redirect, mod_rewrite),
 +## and which, in turn, should be listed before dynamic handlers
 +## (e.g. mod_cgi, mod_fastcgi, mod_proxy, mod_scgi, ...)
 +##
 +
 +server.modules = (
 +  "mod_access",
 +  "mod_fastcgi",
 +#  "mod_alias",
 +#  "mod_auth",
 +#  "mod_authn_file",
 +#  "mod_evasive",
 +#  "mod_setenv",
 +#  "mod_usertrack",
 +#  "mod_redirect",
 +#  "mod_rewrite",
 +)
 +
 +##
 +#######################################################################
 +
 +#######################################################################
 +##
 +##  Config for various Modules
 +##
 +
 +##
 +## mod_geoip
 +##
 +#include "conf.d/geoip.conf"
 +
 +##
 +## mod_ssi
 +##
 +#include "conf.d/ssi.conf"
 +
 +##
 +## mod_status
 +##
 +#include "conf.d/status.conf"
 +
 +##
 +## mod_webdav
 +##
 +#include "conf.d/webdav.conf"
 +
 +##
 +## mod_compress
 +##
 +#include "conf.d/compress.conf"
 +
 +##
 +## mod_userdir
 +##
 +#include "conf.d/userdir.conf"
 +
 +##
 +## mod_magnet
 +##
 +#include "conf.d/magnet.conf"
 +
 +##
 +## mod_cml
 +##
 +#include "conf.d/cml.conf"
 +
 +##
 +## mod_rrdtool
 +##
 +#include "conf.d/rrdtool.conf"
 +
 +##
 +## mod_proxy
 +##
 +#include "conf.d/proxy.conf"
 +
 +##
 +## mod_expire
 +##
 +#include "conf.d/expire.conf"
 +
 +##
 +## mod_secdownload
 +##
 +#include "conf.d/secdownload.conf"
 +
 +##
 +#######################################################################
 +
 +#######################################################################
 +##
 +## CGI modules
 +##
 +
 +##
 +## SCGI (mod_scgi)
 +##
 +#include "conf.d/scgi.conf"
 +
 +##
 +## FastCGI (mod_fastcgi)
 +##
 +include "conf.d/fastcgi.conf"
 +
 +##
 +## plain old CGI (mod_cgi)
 +##
 +#include "conf.d/cgi.conf"
 +
 +##
 +#######################################################################
 +
 +#######################################################################
 +##
 +## VHost Modules
 +##
 +##  Only load ONE of them!
 +## ========================
 +##
 +
 +##
 +## You can use conditionals for vhosts aswell.
 +## 
 +## see https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration
 +##
 +
 +##
 +## mod_evhost
 +##
 +#include "conf.d/evhost.conf"
 +
 +##
 +## mod_simple_vhost
 +##
 +#include "conf.d/simple_vhost.conf"
 +
 +##
 +## mod_mysql_vhost
 +##
 +#include "conf.d/mysql_vhost.conf"
 +
 +##
 +################################
 </code> </code>
lighttpd.1590010584.txt.gz · Last modified: 2020/05/20 23:36 by francesco