Using HDR-FOX as a Web Server on the LAN

Black Hole

May contain traces of nut
Obviously the HDR-FOX CF is running a web server on the LAN, that's how we get the WebIF in our browsers. My question is about how to use it to serve a general (user-generated) .html.

/mod/etc/lighttpd/server.conf has an alias.url section, which appears to contain a list of redirects. If I added (eg) "/home" to redirect to somewhere in the file system to where I had home.html, I presume [IP address]/home/home in the browser address bar would get me that web page.

How do I make modifications to server.conf, and make them stick? How do I preserve any mods from updates? Is there a better way?
 
When I played with this (over 10 years ago) I just added a mystuff folder under /mod/webif/html

Then http://humax/mystuff/ brings up your index.html page or http://humax/mystuff/test.html for a different page

I didn't try an locate my pages elsewhere in the file system or need to make any configuration changes AFAIK
You can also address executable files (e.g. .jim) if you want to generate your web pages
 
How do I make modifications to server.conf, and make them stick? How do I preserve any mods from updates? Is there a better way?
You can put whatever config. you need in extra.conf - that's what it's for but, as the instructions say, it's better to create your own whatever.conf in /mod/etc/lighttpd/extra.d/
You need to do a service lighttpd restart every time you change it.
e.g.
Code:
humax# cat /mod/etc/lighttpd/extra.d/bh.conf
alias.url += (
        "/home" => "/mod/bh"
)
humax# cat /mod/bh/index.html
<!DOCTYPE HTML>
<html>
<head>
<title>BH's Home Page</title>
</head>
<body>
This is Black Hole's Home Page
</body>
</html>
I just added a mystuff folder under /mod/webif/html
I would consider that a bit of a bodge. Keep stuff out of /mod/webif/html/ and put it elsewhere, as shown above.
 
Back
Top