f-log

just another web log

12 Oct 2019:
build to the light
More procrastination on the Shark side of things. Firefox is now blocking local file linking to certain other local files and I was fed up running Python web server instances.

Had a look at Apache and nginx, but both had nightmare configs. Finally opted for lighttpd

Install
emerge --ask www-servers/lighttpd

Setup /etc/lighttpd/lighttpd.conf
append

$SERVER["socket"] == "127.0.0.1:8080" {
server.name = "www.genfic.com"
server.document-root = "/var/www/www.genfic.com/"
server.errorlog = "/var/log/lighttpd/http_error.log"
accesslog.filename = "/var/log/lighttpd/http_access.log"
}


Add to services
rc-update add lighttpd default

Run
/etc/init.d/lighttpd start

Initiate
echo this is a test >> /var/www/www.genfic.com/index.html

Test
curl "127.0.0.1:8080"

Result
this is a test

time to get back in the water...

This mainly came from lighttpd Gentoo Wiki and Official lighttpd config docs wiki
01 Oct 2019:
autocomplete mind blown tab
I have been using Linux for 20+ years and Unix for few years before that, but even I do not know every trick.

In Bash shell you can use TAB to auto-complete a path and sometimes even basic commands.

If you create your own script then the TAB does not know if it should be showing results for folders or/and files and it is really annoying with complex file names and paths.

The trick is to use instead
ALT + /

{- mind blown -}
01 Oct 2019:
bash powerful powercut
My powercut wifi IP address fix worked. Or, it did not break :)

No idea what is going on, entire street was down again. Apparently some local schools were closed as they could not recover.

Normally power cuts are in the evening/night, this one was in the morning.
loading results, please wait loading animateloading animateloading animate
[More tags]
rss feed

email

root

flog archives


Disclaimer: This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk In fact I'm not responsible for anything ever, so there!