lighttpd.conf.example 913 B

1234567891011121314151617181920212223242526272829
  1. # This is completely optional, but if you're running a site with
  2. # ssl="always" configured, then you might as well redirect any of
  3. # your stray HTTP visitors to HTTPS.
  4. #
  5. #$HTTP["scheme"] == "http" {
  6. # $HTTP["host"] =~ "^(social\.example\.com)$" {
  7. # url.redirect = ( "^\/?(.*)" => "https://%1/$1" )
  8. # server.name = "%1"
  9. # }
  10. #}
  11. # If you're using vhosts, you should have per-vhost server.document-root
  12. # settings too! Read how in the respective alternative vhost modules.
  13. #$HTTP["host"] =~ "^social\.example\.com$" {
  14. # NOTE: configure fastcgi/cgi/fpm here if you're using per-user cgi/fpm
  15. # fastcgi.server += ( ".php" =>
  16. # ( "localhost" => (
  17. # "host" => "127.0.0.1",
  18. # "port" => "9000"
  19. # ))
  20. # )
  21. dir-listing.activate = "disable"
  22. # Make sure "mod_rewrite" is enabled in server.modules
  23. url.rewrite-if-not-file = ( "^/(.*)$" => "/index.php/$1" )
  24. #}