I compiled mjpg-streamer from source on a Wheezy install on my Server plus
Previously, I had this package running on Lenny and Squeeze with no problems.
Now, I follow the instructions here
http://skillfulness.blogspot.com/2010/03/mjpg-streamer-documentation.htmlbut can't get the demo pages
to show webcam video but accessing the port
does work.
I am using port 443 (outside and inside my network) since my ISP blocks port 80. From my internal network I can access the 8080 port by http
but when I enter the same address with https I get an error
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
My lighttpd.conf looks like this
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_fastcgi",
"mod_cgi",
"mod_auth"
# "mod_rewrite",
)
server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
#server.port = 80
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
"index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " #+ server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket"
)))
dir-listing.encoding = "utf-8"
server.dir-listing = "enable"
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/root/certificate/server.pem"
ssl.ca-file = "/root/certificate/server.crt"
}
## type of backend
# plain, htpasswd, ldap or htdigest
auth.debug = 2
auth.backend = "plain"
# filename of the password storage for plain
auth.backend.plain.userfile = "/etc/lighttpd/.lighttpdpassword"
## debugging
# 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
auth.require = ( "/" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "valid-user"
)
)
I have the mjpg-streamer provided sample html files in /var/www/mjpg-streamer and I invoke the binary with
/root/mjpg-streamer/mjpg_streamer -i "/root/mjpg-streamer/input_uvc.so" -o "/root/mjpg-streamer/output_http.so -p 8080 -w /var/www/mjpg-streamer"
I can see the html but not the video images. Something is blocking video over https or is the directory the problem? I chown www-data:www-data all of the html files.