author

eugen_m2

1
Inbox View Profile
2Comments

Tell us about yourself!

  • IoT - Controlling a Raspberry Pi Robot Over Internet With HTML and Shell Scripts Only

    Hey there, i got the old files back, yes the line needs to be in the conf filehere is my own ://////////server.modules = ( "mod_indexfile", "mod_access", "mod_alias", "mod_redirect", "mod_cgi",)server.document-root = "/var/www/html"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# strict parsing and normalization of URL for consistency and security# https://redmine.lighttpd.net/projects/lighttpd/wi...# (might need to explicitly set "url-path-2f-decode" = "disable"# if a specific …

    see more »

    Hey there, i got the old files back, yes the line needs to be in the conf filehere is my own ://////////server.modules = ( "mod_indexfile", "mod_access", "mod_alias", "mod_redirect", "mod_cgi",)server.document-root = "/var/www/html"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# strict parsing and normalization of URL for consistency and security# https://redmine.lighttpd.net/projects/lighttpd/wi...# (might need to explicitly set "url-path-2f-decode" = "disable"# if a specific application is encoding URLs inside url-path)server.http-parseopts = ( "header-strict" => "enable",# default "host-strict" => "enable",# default "host-normalize" => "enable",# default "url-normalize-unreserved"=> "enable",# recommended highly "url-normalize-required" => "enable",# recommended "url-ctrls-reject" => "enable",# recommended "url-path-2f-decode" => "enable",# recommended highly (unless breaks app) #"url-path-2f-reject" => "enable", "url-path-dotseg-remove" => "enable",# recommended highly (unless breaks app) #"url-path-dotseg-reject" => "enable", #"url-query-20-plus" => "enable",# consistency in query string)index-file.names = ( "index.php", "index.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 portinclude_shell "/usr/share/lighttpd/use-ipv6.pl " + server.portinclude_shell "/usr/share/lighttpd/create-mime.conf.pl"include "/etc/lighttpd/conf-enabled/*.conf"$HTTP["url"] =~ "/cgi-bin/" { cgi.assign = ( "" => "" )}cgi.assign = ( ".cgi" => "")alias.url += ( "/cgi-bin" => "/usr/www/cgi-bin/" )#server.compat-module-load = "disable"server.modules += ( "mod_compress", "mod_dirlisting", "mod_staticfile",)////////also in the html file you can add this lines for nice shooter like control from your keyboard/////stop();window.addEventListener("keypress", function (evt) { var SPACEBAR = 32; if (evt.which === SPACEBAR) { stop(); evt.preventDefault(); }});forward();window.addEventListener("keypress", function (evt) { var w = 119; if (evt.which === w) { forward(); evt.preventDefault(); }});left();window.addEventListener("keypress", function (evt) { var a = 97; if (evt.which === a) { left(); evt.preventDefault(); }});right();window.addEventListener("keypress", function (evt) { var d = 100; if (evt.which === d) { right(); evt.preventDefault(); }});reverse();window.addEventListener("keypress", function (evt) { var s = 115; if (evt.which === s) { reverse(); evt.preventDefault(); }});////////

    View Instructable »