Project

General

Profile

Does 1.4.45 support Mod_websocket

Added by mukeshsale almost 4 years ago

Hi,
I had integrated mod_websocket module in my 1.4.35 version and working fine.But when i switched to 1.4.45, its not working.Does anyone aware if this support till there or can be supported ?
my lighttpd.conf

server.modules              = ("mod_fastcgi", "mod_setenv")
#server.upload-dirs = ( "/usr/local/lmedia/lost+found", "/tmp" )
accesslog.filename = "/var/log/http.log" 
#accesslog.format = "%h %U %t "%{Referer}i" "%{User-Agent}i"" 

include "mod_websocket.conf" 

server.document-root        = "/usr/local/www" 
server.pid-file = "/var/run/lighttpd.pid" 

# files to check for if .../ is requested
index-file.names            = ( "home.html","index.php", "index.html",
                                "index.htm", "default.htm", "index.html.gz","viewer.html")

server.error-handler-404 = "/index.html" 

debug.log-request-handling = "enable" 
debug.log-state-handling = "enable" 
debug.log-request-header="enable" 
debug.log-response-header="enable" 

server.max-read-idle = 120
server.max-keep-alive-idle = 120
fastcgi.debug = 1

fastcgi.server += ("/api" =>
((
  "bin-path"    => "/usr/local/bin/spx_restservice",
  "max-procs"   => 1,
  "socket"    => "/tmp/spx_restservice.socket",
  "check-local" => "disable",
  "allow-x-send-file" => "enable" 
)))

#include_shell "[ -f /conf/lighttpd_ext.conf ] && cat /conf/lighttpd_ext.conf || echo -n " 
include "lighttpd_ext.conf" 

#use always https feature based support
include "mod_always_https.conf" 
# mimetype mapping
mimetype.assign             = (
  ".gif"          =>      "image/gif",
  ".jpg"          =>      "image/jpeg",
  ".jpeg"         =>      "image/jpeg",
  ".png"          =>      "image/png",
  ".css"          =>      "text/css",
  ".html"         =>      "text/html",
  ".htm"          =>      "text/html",
  ".js"           =>      "text/javascript",
  ".text"         =>      "text/plain",
  ".txt"          =>      "text/plain",
  ".xml"          =>      "text/xml",
  ".elg"          =>      "application/x-ibmclog",
  ".jnlp"         =>      "application/x-java-jnlp-file",
  ".gz"       =>    "application/x-gzip",
  ".tar.gz"   =>    "application/x-gzip-compressed-tar" 
 )

#enable ipv6 support
server.use-ipv6 = "enable" 
server.socket = "[::]:80" 

## bind to port (default: 80)
server.port = 80

## SSL Engine
$SERVER["socket"] == ":443" {
  ssl.engine = "enable" 
  server.use-ipv6 = "enable" 
  ssl.cipher-list = "TLSv1+HIGH !SSLv2 !RC4 !aNULL !eNULL !3DES @STRENGTH" 
}

$HTTP["url"] =~ "\.js$|\.html$|\.css$|\.png$|\.woff$|\.jpg$|^/$" {
setenv.add-response-header += ( "Content-Encoding" => "gzip","X-Frame-Options" => "SAMEORIGIN")
}
##set cache control to no only for url with /api/
$HTTP["url"] =~ "^/api" {
setenv.add-response-header += ( "Cache-Control" => "no-store, no-cache, must-revalidate, post-check=0, pre-check=0" )
}

#include "redfish_lighttpd.conf" 


Replies (2)

RE: Does 1.4.45 support Mod_websocket - Added by gstrauss almost 4 years ago

This was already answered in your improperly filed "bug" 28 days ago.

#3011

Did you read it? Stop wasting our and your time.

I'll cut-n-paste from #3011:

This is not a bug in lighttpd. Please do not file bugs to ask for support. The Support forum (https://redmine.lighttpd.net/projects/lighttpd/boards/2) is a place to ask questions. However, before doing so, please review lighttpd documentation to see if you can answer your own question in the 6 years and 20 versions of lighttpd that have been released since lighttpd 1.4.35. The latest lighttpd is lighttpd 1.4.55. You selected Category "mod_wstunnel" in your invalid bug report. You should read the documentation for mod_wstunnel which was released Oct 2017 in lighttpd 1.4.46. You will not get further responses here.

mod_wstunnel

Read the comments at the top of mod_wstunnel.c

RE: Does 1.4.45 support Mod_websocket - Added by gstrauss almost 4 years ago

FYI: your history of abject failure to read documentation is on display for the world here: https://redmine.lighttpd.net/users/12064

    (1-2/2)