Post thumbnail of Tips and tricks using sudo with vim and redirection
29 September 2010
Continue reading Tips and tricks using sudo with vim and redirection

Tips and tricks using sudo with vim and redirection

Ever opened a file vim but didn’t notice it was read-only until you try to save? Don’t exit and run sudo in front of the same command again. Try this instead.

Post thumbnail of Redirect URLs in Lighttpd
18 November 2009
Continue reading Redirect URLs in Lighttpd

Redirect URLs in Lighttpd

I’m going to redirect http://blog.rootninja.com to the main site. I don’t know why I didn’t just do this in the first place. I’ve always left it over here on its own. But it’s all on the same Virtual private server. Anyway, this is really easy to do in lighttpd. First, redirect all “www.rootninja.com” traffic to “rootninja.com”, because that other page is useless.

Post thumbnail of Redirect http to SSL encrypted https for specific domains in lighttpd
6 March 2009
Continue reading Redirect http to SSL encrypted https for specific domains in lighttpd

Redirect http to SSL encrypted https for specific domains in lighttpd

I read in a bunch of places that you can’t use HTTP["scheme"] to redirect http:80 traffic to https:443 without using 2-3 levels of nesting with socket and host. But that’s just not true. The only reason it doesn’t work at first is because http is a subset of https, so be more specific with http$ and it works with just one line in lighttpd.conf.

Powered by Wordpress   |   Lunated designed by ZenVerse