Advertisement
Guest User

Untitled

a guest
Aug 8th, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.44 KB | None | 0 0
  1. #######################################################################
  2. ##
  3. ## /etc/lighttpd/lighttpd.conf
  4. ##
  5. ## check /etc/lighttpd/conf.d/*.conf for the configuration of modules.
  6. ##
  7. #######################################################################
  8.  
  9. #######################################################################
  10. ##
  11. ## Some Variable definition which will make chrooting easier.
  12. ##
  13. ## if you add a variable here. Add the corresponding variable in the
  14. ## chroot example aswell.
  15. ##
  16. var.log_root = "/var/log/lighttpd"
  17. var.server_root = "/var/www"
  18. var.state_dir = "/var/run"
  19. var.home_dir = "/var/lib/lighttpd"
  20. var.conf_dir = "/etc/lighttpd"
  21.  
  22. ##
  23. ## run the server chrooted.
  24. ##
  25. ## This requires root permissions during startup.
  26. ##
  27. ## If you run Chrooted set the the variables to directories relative to
  28. ## the chroot dir.
  29. ##
  30. ## example chroot configuration:
  31. ##
  32. #var.log_root = "/logs"
  33. #var.server_root = "/"
  34. #var.state_dir = "/run"
  35. #var.home_dir = "/lib/lighttpd"
  36. #var.vhosts_dir = "/vhosts"
  37. #var.conf_dir = "/etc"
  38. #
  39. #server.chroot = "/srv/www"
  40.  
  41. ##
  42. ## Some additional variables to make the configuration easier
  43. ##
  44.  
  45. ##
  46. ## Base directory for all virtual hosts
  47. ##
  48. ## used in:
  49. ## conf.d/evhost.conf
  50. ## conf.d/simple_vhost.conf
  51. ## vhosts.d/vhosts.template
  52. ##
  53. var.vhosts_dir = server_root + "/vhosts"
  54.  
  55. ##
  56. ## Cache for mod_compress
  57. ##
  58. ## used in:
  59. ## conf.d/compress.conf
  60. ##
  61. var.cache_dir = "/var/cache/lighttpd"
  62.  
  63. ##
  64. ## Base directory for sockets.
  65. ##
  66. ## used in:
  67. ## conf.d/fastcgi.conf
  68. ## conf.d/scgi.conf
  69. ##
  70. var.socket_dir = home_dir + "/sockets"
  71.  
  72. ##
  73. #######################################################################
  74.  
  75. #######################################################################
  76. ##
  77. ## Load the modules.
  78. include "modules.conf"
  79.  
  80. ##
  81. #######################################################################
  82.  
  83. #######################################################################
  84. ##
  85. ## Basic Configuration
  86. ## ---------------------
  87. ##
  88. server.port = 80
  89.  
  90. ##
  91. ## Use IPv6?
  92. ##
  93. # server.use-ipv6 = "enable"
  94.  
  95. ##
  96. ## bind to a specific IP
  97. ##
  98. #server.bind = "localhost"
  99.  
  100. ##
  101. ## Run as a different username/groupname.
  102. ## This requires root permissions during startup.
  103. ##
  104. server.username = "lighttpd"
  105. server.groupname = "lighttpd"
  106.  
  107. ##
  108. ## enable core files.
  109. ##
  110. #server.core-files = "disable"
  111.  
  112. ##
  113. ## Document root
  114. ##
  115. server.document-root = server_root + "/lighttpd"
  116. # server.document-root = "/mnt/video"
  117.  
  118. ##
  119. ## The value for the "Server:" response field.
  120. ##
  121. ## It would be nice to keep it at "lighttpd".
  122. ##
  123. #server.tag = "lighttpd"
  124.  
  125. ##
  126. ## store a pid file
  127. ##
  128. server.pid-file = state_dir + "/lighttpd.pid"
  129.  
  130. ##
  131. #######################################################################
  132.  
  133. #######################################################################
  134. ##
  135. ## Logging Options
  136. ## ------------------
  137. ##
  138. ## all logging options can be overwritten per vhost.
  139. ##
  140. ## Path to the error log file
  141. ##
  142. server.errorlog = log_root + "/error.log"
  143.  
  144. ##
  145. ## If you want to log to syslog you have to unset the
  146. ## server.errorlog setting and uncomment the next line.
  147. ##
  148. #server.errorlog-use-syslog = "enable"
  149.  
  150. ##
  151. ## Access log config
  152. ##
  153. include "conf.d/access_log.conf"
  154.  
  155. ##
  156. ## The debug options are moved into their own file.
  157. ## see conf.d/debug.conf for various options for request debugging.
  158. ##
  159. include "conf.d/debug.conf"
  160.  
  161. ##
  162. #######################################################################
  163.  
  164. #######################################################################
  165. ##
  166. ## Tuning/Performance
  167. ## --------------------
  168. ##
  169. ## corresponding documentation:
  170. ## http://www.lighttpd.net/documentation/performance.html
  171. ##
  172. ## set the event-handler (read the performance section in the manual)
  173. ##
  174. ## possible options on linux are:
  175. ##
  176. ## select
  177. ## poll
  178. ## linux-sysepoll
  179. ##
  180. ## linux-sysepoll is recommended on kernel 2.6.
  181. ##
  182. server.event-handler = "linux-sysepoll"
  183.  
  184. ##
  185. ## The basic network interface for all platforms at the syscalls read()
  186. ## and write(). Every modern OS provides its own syscall to help network
  187. ## servers transfer files as fast as possible
  188. ##
  189. ## linux-sendfile - is recommended for small files.
  190. ## writev - is recommended for sending many large files
  191. ##
  192. server.network-backend = "linux-sendfile"
  193.  
  194. ##
  195. ## As lighttpd is a single-threaded server, its main resource limit is
  196. ## the number of file descriptors, which is set to 1024 by default (on
  197. ## most systems).
  198. ##
  199. ## If you are running a high-traffic site you might want to increase this
  200. ## limit by setting server.max-fds.
  201. ##
  202. ## Changing this setting requires root permissions on startup. see
  203. ## server.username/server.groupname.
  204. ##
  205. ## By default lighttpd would not change the operation system default.
  206. ## But setting it to 2048 is a better default for busy servers.
  207. ##
  208. ## With SELinux enabled, this is denied by default and needs to be allowed
  209. ## by running the following once : setsebool -P httpd_setrlimit on
  210. #server.max-fds = 2048
  211.  
  212. ##
  213. ## Stat() call caching.
  214. ##
  215. ## lighttpd can utilize FAM/Gamin to cache stat call.
  216. ##
  217. ## possible values are:
  218. ## disable, simple or fam.
  219. ##
  220. server.stat-cache-engine = "simple"
  221.  
  222. ##
  223. ## Fine tuning for the request handling
  224. ##
  225. ## max-connections == max-fds/2 (maybe /3)
  226. ## means the other file handles are used for fastcgi/files
  227. ##
  228. server.max-connections = 1024
  229.  
  230. ##
  231. ## How many seconds to keep a keep-alive connection open,
  232. ## until we consider it idle.
  233. ##
  234. ## Default: 5
  235. ##
  236. #server.max-keep-alive-idle = 5
  237.  
  238. ##
  239. ## How many keep-alive requests until closing the connection.
  240. ##
  241. ## Default: 16
  242. ##
  243. #server.max-keep-alive-requests = 16
  244.  
  245. ##
  246. ## Maximum size of a request in kilobytes.
  247. ## By default it is unlimited (0).
  248. ##
  249. ## Uploads to your server cant be larger than this value.
  250. ##
  251. #server.max-request-size = 0
  252.  
  253. ##
  254. ## Time to read from a socket before we consider it idle.
  255. ##
  256. ## Default: 60
  257. ##
  258. #server.max-read-idle = 60
  259.  
  260. ##
  261. ## Time to write to a socket before we consider it idle.
  262. ##
  263. ## Default: 360
  264. ##
  265. #server.max-write-idle = 360
  266.  
  267. ##
  268. ## Traffic Shaping
  269. ## -----------------
  270. ##
  271. ## see /usr/share/doc/lighttpd/traffic-shaping.txt
  272. ##
  273. ## Values are in kilobyte per second.
  274. ##
  275. ## Keep in mind that a limit below 32kB/s might actually limit the
  276. ## traffic to 32kB/s. This is caused by the size of the TCP send
  277. ## buffer.
  278. ##
  279. ## per server:
  280. ##
  281. #server.kbytes-per-second = 128
  282.  
  283. ##
  284. ## per connection:
  285. ##
  286. #connection.kbytes-per-second = 32
  287.  
  288. ##
  289. #######################################################################
  290.  
  291. #######################################################################
  292. ##
  293. ## Filename/File handling
  294. ## ------------------------
  295.  
  296. dir-listing.activate = "enable"
  297. dir-listing.encoding = "utf-8"
  298. ##
  299. ## files to check for if .../ is requested
  300. ## index-file.names = ( "index.php", "index.rb", "index.html",
  301. ## "index.htm", "default.htm" )
  302. ##
  303. index-file.names += (
  304. "index.xhtml", "index.html", "index.htm", "default.htm", "index.php"
  305. )
  306. ##
  307. ##
  308. ## deny access the file-extensions
  309. ##
  310. ## ~ is for backupfiles from vi, emacs, joe, ...
  311. ## .inc is often used for code includes which should in general not be part
  312. ## of the document-root
  313. url.access-deny = ( "~", ".inc" )
  314.  
  315. ##
  316. ## disable range requests for pdf files
  317. ## workaround for a bug in the Acrobat Reader plugin.
  318. ##
  319. $HTTP["url"] =~ "\.pdf$" {
  320. server.range-requests = "disable"
  321. }
  322.  
  323. ##
  324. ## url handling modules (rewrite, redirect)
  325. ##
  326. #url.rewrite = ( "^/$" => "/server-status" )
  327. #url.redirect = ( "^/wishlist/(.+)" => "http://www.example.com/$1" )
  328.  
  329. ##
  330. ## both rewrite/redirect support back reference to regex conditional using %n
  331. ##
  332. #$HTTP["host"] =~ "^www\.(.*)" {
  333. # url.redirect = ( "^/(.*)" => "http://%1/$1" )
  334. #}
  335.  
  336. ##
  337. ## which extensions should not be handle via static-file transfer
  338. ##
  339. ## .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
  340. ##
  341. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" )
  342.  
  343. ##
  344. ## error-handler for status 404
  345. ##
  346. #server.error-handler-404 = "/error-handler.html"
  347. #server.error-handler-404 = "/error-handler.php"
  348.  
  349. ##
  350. ## Format: <errorfile-prefix><status-code>.html
  351. ## -> ..../status-404.html for 'File not found'
  352. ##
  353. #server.errorfile-prefix = "/srv/www/htdocs/errors/status-"
  354.  
  355. ##
  356. ## mimetype mapping
  357. ##
  358. include "conf.d/mime.conf"
  359.  
  360. ##
  361. ## directory listing configuration
  362. ##
  363. include "conf.d/dirlisting.conf"
  364.  
  365. ##
  366. ## Should lighttpd follow symlinks?
  367. ##
  368. server.follow-symlink = "enable"
  369.  
  370. ##
  371. ## force all filenames to be lowercase?
  372. ##
  373. #server.force-lowercase-filenames = "disable"
  374.  
  375. ##
  376. ## defaults to /var/tmp as we assume it is a local harddisk
  377. ##
  378. server.upload-dirs = ( "/var/tmp" )
  379.  
  380. ##
  381. #######################################################################
  382.  
  383.  
  384. #######################################################################
  385. ##
  386. ## SSL Support
  387. ## -------------
  388. ##
  389. ## To enable SSL for the whole server you have to provide a valid
  390. ## certificate and have to enable the SSL engine.::
  391. ##
  392. ## ssl.engine = "enable"
  393. ## ssl.pemfile = "/path/to/server.pem"
  394. ##
  395. ## The HTTPS protocol does not allow you to use name-based virtual
  396. ## hosting with SSL. If you want to run multiple SSL servers with
  397. ## one lighttpd instance you must use IP-based virtual hosting: ::
  398. ##
  399. ## $SERVER["socket"] == "10.0.0.1:443" {
  400. ## ssl.engine = "enable"
  401. ## ssl.pemfile = "/etc/ssl/private/www.example.com.pem"
  402. ## server.name = "www.example.com"
  403. ##
  404. ## server.document-root = "/srv/www/vhosts/example.com/www/"
  405. ## }
  406. ##
  407.  
  408. ## If you have a .crt and a .key file, cat them together into a
  409. ## single PEM file:
  410. ## $ cat /etc/ssl/private/lighttpd.key /etc/ssl/certs/lighttpd.crt \
  411. ## > /etc/ssl/private/lighttpd.pem
  412. ##
  413. #ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
  414.  
  415. ##
  416. ## optionally pass the CA certificate here.
  417. ##
  418. ##
  419. #ssl.ca-file = ""
  420.  
  421. ##
  422. #######################################################################
  423.  
  424. #######################################################################
  425. ##
  426. ## custom includes like vhosts.
  427. ##
  428. #include "conf.d/config.conf"
  429. #include_shell "cat /etc/lighttpd/vhosts.d/*.conf"
  430. ##
  431. #######################################################################
  432. [root@nas10 lighttpd]# service lighttpd restart
  433. Останавливается lighttpd: [СБОЙ ]
  434. Запускается lighttpd: Duplicate config variable in conditional 0 global: dir-listing.activate
  435. 2011-08-09 00:17:49: (configfile.c.912) source: /etc/lighttpd/conf.d/dirlisting.conf line: 18 pos: 26 parser failed somehow near here: (EOL)
  436. 2011-08-09 00:17:49: (configfile.c.912) source: /etc/lighttpd/lighttpd.conf line: 368 pos: 22 parser failed somehow near here: (EOL)
  437. [СБОЙ ]
  438. [root@nas10 lighttpd]#
  439. [root@nas10 lighttpd]#
  440. [root@nas10 lighttpd]#
  441. [root@nas10 lighttpd]# cat lighttpd.conf
  442. #######################################################################
  443. ##
  444. ## /etc/lighttpd/lighttpd.conf
  445. ##
  446. ## check /etc/lighttpd/conf.d/*.conf for the configuration of modules.
  447. ##
  448. #######################################################################
  449.  
  450. #######################################################################
  451. ##
  452. ## Some Variable definition which will make chrooting easier.
  453. ##
  454. ## if you add a variable here. Add the corresponding variable in the
  455. ## chroot example aswell.
  456. ##
  457. var.log_root = "/var/log/lighttpd"
  458. var.server_root = "/var/www"
  459. var.state_dir = "/var/run"
  460. var.home_dir = "/var/lib/lighttpd"
  461. var.conf_dir = "/etc/lighttpd"
  462.  
  463. ##
  464. ## run the server chrooted.
  465. ##
  466. ## This requires root permissions during startup.
  467. ##
  468. ## If you run Chrooted set the the variables to directories relative to
  469. ## the chroot dir.
  470. ##
  471. ## example chroot configuration:
  472. ##
  473. #var.log_root = "/logs"
  474. #var.server_root = "/"
  475. #var.state_dir = "/run"
  476. #var.home_dir = "/lib/lighttpd"
  477. #var.vhosts_dir = "/vhosts"
  478. #var.conf_dir = "/etc"
  479. #
  480. #server.chroot = "/srv/www"
  481.  
  482. ##
  483. ## Some additional variables to make the configuration easier
  484. ##
  485.  
  486. ##
  487. ## Base directory for all virtual hosts
  488. ##
  489. ## used in:
  490. ## conf.d/evhost.conf
  491. ## conf.d/simple_vhost.conf
  492. ## vhosts.d/vhosts.template
  493. ##
  494. var.vhosts_dir = server_root + "/vhosts"
  495.  
  496. ##
  497. ## Cache for mod_compress
  498. ##
  499. ## used in:
  500. ## conf.d/compress.conf
  501. ##
  502. var.cache_dir = "/var/cache/lighttpd"
  503.  
  504. ##
  505. ## Base directory for sockets.
  506. ##
  507. ## used in:
  508. ## conf.d/fastcgi.conf
  509. ## conf.d/scgi.conf
  510. ##
  511. var.socket_dir = home_dir + "/sockets"
  512.  
  513. ##
  514. #######################################################################
  515.  
  516. #######################################################################
  517. ##
  518. ## Load the modules.
  519. include "modules.conf"
  520.  
  521. ##
  522. #######################################################################
  523.  
  524. #######################################################################
  525. ##
  526. ## Basic Configuration
  527. ## ---------------------
  528. ##
  529. server.port = 80
  530.  
  531. ##
  532. ## Use IPv6?
  533. ##
  534. # server.use-ipv6 = "enable"
  535.  
  536. ##
  537. ## bind to a specific IP
  538. ##
  539. #server.bind = "localhost"
  540.  
  541. ##
  542. ## Run as a different username/groupname.
  543. ## This requires root permissions during startup.
  544. ##
  545. server.username = "lighttpd"
  546. server.groupname = "lighttpd"
  547.  
  548. ##
  549. ## enable core files.
  550. ##
  551. #server.core-files = "disable"
  552.  
  553. ##
  554. ## Document root
  555. ##
  556. server.document-root = server_root + "/lighttpd"
  557. # server.document-root = "/mnt/sdb"
  558.  
  559. ##
  560. ## The value for the "Server:" response field.
  561. ##
  562. ## It would be nice to keep it at "lighttpd".
  563. ##
  564. #server.tag = "lighttpd"
  565.  
  566. ##
  567. ## store a pid file
  568. ##
  569. server.pid-file = state_dir + "/lighttpd.pid"
  570.  
  571. ##
  572. #######################################################################
  573.  
  574. #######################################################################
  575. ##
  576. ## Logging Options
  577. ## ------------------
  578. ##
  579. ## all logging options can be overwritten per vhost.
  580. ##
  581. ## Path to the error log file
  582. ##
  583. server.errorlog = log_root + "/error.log"
  584.  
  585. ##
  586. ## If you want to log to syslog you have to unset the
  587. ## server.errorlog setting and uncomment the next line.
  588. ##
  589. #server.errorlog-use-syslog = "enable"
  590.  
  591. ##
  592. ## Access log config
  593. ##
  594. include "conf.d/access_log.conf"
  595.  
  596. ##
  597. ## The debug options are moved into their own file.
  598. ## see conf.d/debug.conf for various options for request debugging.
  599. ##
  600. include "conf.d/debug.conf"
  601.  
  602. ##
  603. #######################################################################
  604.  
  605. #######################################################################
  606. ##
  607. ## Tuning/Performance
  608. ## --------------------
  609. ##
  610. ## corresponding documentation:
  611. ## http://www.lighttpd.net/documentation/performance.html
  612. ##
  613. ## set the event-handler (read the performance section in the manual)
  614. ##
  615. ## possible options on linux are:
  616. ##
  617. ## select
  618. ## poll
  619. ## linux-sysepoll
  620. ##
  621. ## linux-sysepoll is recommended on kernel 2.6.
  622. ##
  623. server.event-handler = "linux-sysepoll"
  624.  
  625. ##
  626. ## The basic network interface for all platforms at the syscalls read()
  627. ## and write(). Every modern OS provides its own syscall to help network
  628. ## servers transfer files as fast as possible
  629. ##
  630. ## linux-sendfile - is recommended for small files.
  631. ## writev - is recommended for sending many large files
  632. ##
  633. server.network-backend = "linux-sendfile"
  634.  
  635. ##
  636. ## As lighttpd is a single-threaded server, its main resource limit is
  637. ## the number of file descriptors, which is set to 1024 by default (on
  638. ## most systems).
  639. ##
  640. ## If you are running a high-traffic site you might want to increase this
  641. ## limit by setting server.max-fds.
  642. ##
  643. ## Changing this setting requires root permissions on startup. see
  644. ## server.username/server.groupname.
  645. ##
  646. ## By default lighttpd would not change the operation system default.
  647. ## But setting it to 2048 is a better default for busy servers.
  648. ##
  649. ## With SELinux enabled, this is denied by default and needs to be allowed
  650. ## by running the following once : setsebool -P httpd_setrlimit on
  651. #server.max-fds = 2048
  652.  
  653. ##
  654. ## Stat() call caching.
  655. ##
  656. ## lighttpd can utilize FAM/Gamin to cache stat call.
  657. ##
  658. ## possible values are:
  659. ## disable, simple or fam.
  660. ##
  661. server.stat-cache-engine = "simple"
  662.  
  663. ##
  664. ## Fine tuning for the request handling
  665. ##
  666. ## max-connections == max-fds/2 (maybe /3)
  667. ## means the other file handles are used for fastcgi/files
  668. ##
  669. server.max-connections = 1024
  670.  
  671. ##
  672. ## How many seconds to keep a keep-alive connection open,
  673. ## until we consider it idle.
  674. ##
  675. ## Default: 5
  676. ##
  677. #server.max-keep-alive-idle = 5
  678.  
  679. ##
  680. ## How many keep-alive requests until closing the connection.
  681. ##
  682. ## Default: 16
  683. ##
  684. #server.max-keep-alive-requests = 16
  685.  
  686. ##
  687. ## Maximum size of a request in kilobytes.
  688. ## By default it is unlimited (0).
  689. ##
  690. ## Uploads to your server cant be larger than this value.
  691. ##
  692. #server.max-request-size = 0
  693.  
  694. ##
  695. ## Time to read from a socket before we consider it idle.
  696. ##
  697. ## Default: 60
  698. ##
  699. #server.max-read-idle = 60
  700.  
  701. ##
  702. ## Time to write to a socket before we consider it idle.
  703. ##
  704. ## Default: 360
  705. ##
  706. #server.max-write-idle = 360
  707.  
  708. ##
  709. ## Traffic Shaping
  710. ## -----------------
  711. ##
  712. ## see /usr/share/doc/lighttpd/traffic-shaping.txt
  713. ##
  714. ## Values are in kilobyte per second.
  715. ##
  716. ## Keep in mind that a limit below 32kB/s might actually limit the
  717. ## traffic to 32kB/s. This is caused by the size of the TCP send
  718. ## buffer.
  719. ##
  720. ## per server:
  721. ##
  722. #server.kbytes-per-second = 128
  723.  
  724. ##
  725. ## per connection:
  726. ##
  727. #connection.kbytes-per-second = 32
  728.  
  729. ##
  730. #######################################################################
  731.  
  732. #######################################################################
  733. ##
  734. ## Filename/File handling
  735. ## ------------------------
  736.  
  737. dir-listing.activate = "enable"
  738. dir-listing.encoding = "utf-8"
  739. ##
  740. ## files to check for if .../ is requested
  741. ## index-file.names = ( "index.php", "index.rb", "index.html",
  742. ## "index.htm", "default.htm" )
  743. ##
  744. index-file.names += (
  745. "index.xhtml", "index.html", "index.htm", "default.htm", "index.php"
  746. )
  747. ##
  748. ##
  749. ## deny access the file-extensions
  750. ##
  751. ## ~ is for backupfiles from vi, emacs, joe, ...
  752. ## .inc is often used for code includes which should in general not be part
  753. ## of the document-root
  754. url.access-deny = ( "~", ".inc" )
  755.  
  756. ##
  757. ## disable range requests for pdf files
  758. ## workaround for a bug in the Acrobat Reader plugin.
  759. ##
  760. $HTTP["url"] =~ "\.pdf$" {
  761. server.range-requests = "disable"
  762. }
  763.  
  764. ##
  765. ## url handling modules (rewrite, redirect)
  766. ##
  767. #url.rewrite = ( "^/$" => "/server-status" )
  768. #url.redirect = ( "^/wishlist/(.+)" => "http://www.example.com/$1" )
  769.  
  770. ##
  771. ## both rewrite/redirect support back reference to regex conditional using %n
  772. ##
  773. #$HTTP["host"] =~ "^www\.(.*)" {
  774. # url.redirect = ( "^/(.*)" => "http://%1/$1" )
  775. #}
  776.  
  777. ##
  778. ## which extensions should not be handle via static-file transfer
  779. ##
  780. ## .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
  781. ##
  782. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" )
  783.  
  784. ##
  785. ## error-handler for status 404
  786. ##
  787. #server.error-handler-404 = "/error-handler.html"
  788. #server.error-handler-404 = "/error-handler.php"
  789.  
  790. ##
  791. ## Format: <errorfile-prefix><status-code>.html
  792. ## -> ..../status-404.html for 'File not found'
  793. ##
  794. #server.errorfile-prefix = "/srv/www/htdocs/errors/status-"
  795.  
  796. ##
  797. ## mimetype mapping
  798. ##
  799. include "conf.d/mime.conf"
  800.  
  801. ##
  802. ## directory listing configuration
  803. ##
  804. include "conf.d/dirlisting.conf"
  805.  
  806. ##
  807. ## Should lighttpd follow symlinks?
  808. ##
  809. server.follow-symlink = "enable"
  810.  
  811. ##
  812. ## force all filenames to be lowercase?
  813. ##
  814. #server.force-lowercase-filenames = "disable"
  815.  
  816. ##
  817. ## defaults to /var/tmp as we assume it is a local harddisk
  818. ##
  819. server.upload-dirs = ( "/var/tmp" )
  820.  
  821. ##
  822. #######################################################################
  823.  
  824.  
  825. #######################################################################
  826. ##
  827. ## SSL Support
  828. ## -------------
  829. ##
  830. ## To enable SSL for the whole server you have to provide a valid
  831. ## certificate and have to enable the SSL engine.::
  832. ##
  833. ## ssl.engine = "enable"
  834. ## ssl.pemfile = "/path/to/server.pem"
  835. ##
  836. ## The HTTPS protocol does not allow you to use name-based virtual
  837. ## hosting with SSL. If you want to run multiple SSL servers with
  838. ## one lighttpd instance you must use IP-based virtual hosting: ::
  839. ##
  840. ## $SERVER["socket"] == "10.0.0.1:443" {
  841. ## ssl.engine = "enable"
  842. ## ssl.pemfile = "/etc/ssl/private/www.example.com.pem"
  843. ## server.name = "www.example.com"
  844. ##
  845. ## server.document-root = "/srv/www/vhosts/example.com/www/"
  846. ## }
  847. ##
  848.  
  849. ## If you have a .crt and a .key file, cat them together into a
  850. ## single PEM file:
  851. ## $ cat /etc/ssl/private/lighttpd.key /etc/ssl/certs/lighttpd.crt \
  852. ## > /etc/ssl/private/lighttpd.pem
  853. ##
  854. #ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
  855.  
  856. ##
  857. ## optionally pass the CA certificate here.
  858. ##
  859. ##
  860. #ssl.ca-file = ""
  861.  
  862. ##
  863. #######################################################################
  864.  
  865. #######################################################################
  866. ##
  867. ## custom includes like vhosts.
  868. ##
  869. #include "conf.d/config.conf"
  870. #include_shell "cat /etc/lighttpd/vhosts.d/*.conf"
  871. ##
  872. #######################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement