Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $HTTP["host"] == "$SUB.remote.domain.com" {
- subdomain = $SUB
- path = "/server/rails" + subdomain
- dir-listing.activate = "disable"
- server.error-handler-404 = "./dispatch.fcgi"
- server.document-root = path + "/public/"
- url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
- compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" )
- compress.cache-dir = path + "/tmp/cache"
- expire.url = ( "/favicon.ico" => "access 3 days",
- "/images/" => "access 3 days",
- "/stylesheets/" => "access 3 days",
- "/javascripts/" => "access 3 days" )
- fastcgi.server = ( ".fcgi" => ( "localhost" => (
- "min-procs" => 1,
- "max-procs" => 1,
- "socket" => path + "tmp/sockets/fcgi.socket",
- "bin-path" => path + "public/dispatch.fcgi",
- "bin-environment" => ( "RAILS_ENV" => "production" )
- ) ) )
- $HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" {
- server.max-keep-alive-requests = 0
- }
- }
Add Comment
Please, Sign In to add comment