# Help me.i hava a problem with lightttpd when i use it run my railsapp

**URL:** <https://www.ruby-forum.com/t/help-me-i-hava-a-problem-with-lightttpd-when-i-use-it-run-my-railsapp/132624>\
**Category:** Rails\
**Created:** [March 22, 2008, 1:38am UTC](https://www.ruby-forum.com/t/help-me-i-hava-a-problem-with-lightttpd-when-i-use-it-run-my-railsapp/132624 "2008-03-22T01:38:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SS\_SSSSS\_SSSSSSSSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@SS\_SSSSS\_SSSSSSSSSS](https://www.ruby-forum.com/u/SS_SSSSS_SSSSSSSSSS)\
**Post date:** [March 22, 2008, 1:38am UTC](https://www.ruby-forum.com/t/help-me-i-hava-a-problem-with-lightttpd-when-i-use-it-run-my-railsapp/132624/1 "2008-03-22T01:38:57Z")

</div>

help me.i hava a problem with lightttpd when i use it run my railsapp  
.in my rails project hava some .flv. when i use mongrel the .flv file  
can be play very fast .but when i deployment, then the .flv file can not  
play.

why ?  
this is my lighttpd configuration file

server.modules = (  
“mod\_rewrite”,

# “mod\_redirect”,

“mod\_alias”,  
“mod\_access”,

# “mod\_cml”,

# “mod\_trigger\_b4\_dl”,

# “mod\_auth”,

# “mod\_status”,

# “mod\_setenv”,

# “mod\_fastcgi”,

“mod\_proxy”,

# “mod\_simple\_vhost”,

# “mod\_evhost”,

# “mod\_userdir”,

# “mod\_cgi”,

# “mod\_compress”,

# “mod\_ssi”,

# “mod\_usertrack”,

# “mod\_expire”,

# “mod\_secdownload”,

# “mod\_rrdtool”,

“mod\_accesslog” )

## a static document-root, for virtual-hosting take look at the

## server.virtual-\* options

server.document-root = “C:/lighttpd/htdocs/”

## where to send error-messages to

server.errorlog = “C:/lighttpd/logs/lighttpd.error.log”

# files to check for if …/ is requested

index-file.names = ( “index.php”, “index.html”,  
“index.htm”, “default.htm” )

## set the event-handler (read the performance section in the manual)

# server.event-handler = “freebsd-kqueue” # needed on OS X

# mimetype mapping

mimetype.assign = (  
“.pdf” =\> “application/pdf”,  
“.sig” =\> “application/pgp-signature”,  
“.spl” =\> “application/futuresplash”,  
“.class” =\> “application/octet-stream”,  
“.ps” =\> “application/postscript”,  
“.torrent” =\> “application/x-bittorrent”,  
“.dvi” =\> “application/x-dvi”,  
“.gz” =\> “application/x-gzip”,  
“.pac” =\> “application/x-ns-proxy-autoconfig”,  
“.swf” =\> “application/x-shockwave-flash”,  
“.tar.gz” =\> “application/x-tgz”,  
“.tgz” =\> “application/x-tgz”,  
“.tar” =\> “application/x-tar”,  
“.zip” =\> “application/zip”,  
“.mp3” =\> “audio/mpeg”,  
“.m3u” =\> “audio/x-mpegurl”,  
“.wma” =\> “audio/x-ms-wma”,  
“.wax” =\> “audio/x-ms-wax”,  
“.ogg” =\> “application/ogg”,  
“.wav” =\> “audio/x-wav”,  
“.gif” =\> “image/gif”,  
“.jpg” =\> “image/jpeg”,  
“.jpeg” =\> “image/jpeg”,  
“.png” =\> “image/png”,  
“.xbm” =\> “image/x-xbitmap”,  
“.xpm” =\> “image/x-xpixmap”,  
“.xwd” =\> “image/x-xwindowdump”,  
“.css” =\> “text/css”,  
“.html” =\> “text/html”,  
“.htm” =\> “text/html”,  
“.js” =\> “text/javascript”,  
“.asc” =\> “text/plain”,  
“.c” =\> “text/plain”,  
“.cpp” =\> “text/plain”,  
“.log” =\> “text/plain”,  
“.conf” =\> “text/plain”,  
“.text” =\> “text/plain”,  
“.txt” =\> “text/plain”,  
“.dtd” =\> “text/xml”,  
“.xml” =\> “text/xml”,  
“.mpeg” =\> “video/mpeg”,  
“.mpg” =\> “video/mpeg”,  
“.mov” =\> “video/quicktime”,  
“.qt” =\> “video/quicktime”,  
“.avi” =\> “video/x-msvideo”,  
“.asf” =\> “video/x-ms-asf”,  
“.asx” =\> “video/x-ms-asf”,  
“.wmv” =\> “video/x-ms-wmv”,  
“.bz2” =\> “application/x-bzip”,  
“.tbz” =\> “application/x-bzip-compressed-tar”,  
“.tar.bz2” =\> “application/x-bzip-compressed-tar”  
)

# Use the “Content-Type” extended attribute to obtain mime type if

possible  
#mimetype.use-xattr = “enable”

## send a different Server: header

## be nice and keep it at lighttpd

server.tag = “lighttpd/1.4.11 (Win32)”

#### accesslog module

accesslog.filename = “C:/lighttpd/logs/access.log”

url.access-deny = ( “~”, “.inc” )

$HTTP[“url”] =~ “.pdf$” {  
server.range-requests = “disable”  
}

server.port = 80

proxy.debug = 0  
proxy.balance = “fair”  
proxy.server = ( “/” =\>  
(  
( “host” =\> “127.0.0.1”, “port” =\> 4001 ),  
( “host” =\> “127.0.0.1”, “port” =\> 4002 )  
)  
)

---

<div class="post-metadata">

**Author:** ![SS\_SSSSS\_SSSSSSSSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@SS\_SSSSS\_SSSSSSSSSS](https://www.ruby-forum.com/u/SS_SSSSS_SSSSSSSSSS)\
**Post date:** [March 23, 2008, 9:13am UTC](https://www.ruby-forum.com/t/help-me-i-hava-a-problem-with-lightttpd-when-i-use-it-run-my-railsapp/132624/2 "2008-03-23T09:13:19Z")

</div>

On Mar 22, 12:37 am, ÍôÑÇ¾ü [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> help me.i hava a problem with lightttpd when i use it run my railsapp

Havn’t actually done this myself, but is this what you are looking  
for:

[http://trac.lighttpd.net/trac/wiki/Docs:ConfigurationOptions#Optionsformod\_flv\_streaming-flvstreamingmodule](http://trac.lighttpd.net/trac/wiki/Docs:ConfigurationOptions#Optionsformod_flv_streaming-flvstreamingmodule)

have a look at the blog

Tonypm
