Guest User

Untitled

a guest
Feb 21st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. $HTTP["host"] == "$SUB.remote.domain.com" {
  2.  
  3. subdomain = $SUB
  4.  
  5. path = "/server/rails" + subdomain
  6.  
  7. dir-listing.activate = "disable"
  8.  
  9. server.error-handler-404 = "./dispatch.fcgi"
  10.  
  11. server.document-root = path + "/public/"
  12.  
  13. url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
  14.  
  15. compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" )
  16. compress.cache-dir = path + "/tmp/cache"
  17.  
  18. expire.url = ( "/favicon.ico" => "access 3 days",
  19. "/images/" => "access 3 days",
  20. "/stylesheets/" => "access 3 days",
  21. "/javascripts/" => "access 3 days" )
  22.  
  23. fastcgi.server = ( ".fcgi" => ( "localhost" => (
  24. "min-procs" => 1,
  25. "max-procs" => 1,
  26. "socket" => path + "tmp/sockets/fcgi.socket",
  27. "bin-path" => path + "public/dispatch.fcgi",
  28. "bin-environment" => ( "RAILS_ENV" => "production" )
  29. ) ) )
  30.  
  31. $HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" {
  32. server.max-keep-alive-requests = 0
  33. }
  34. }
Add Comment
Please, Sign In to add comment