-
Categories
-
Tags/Keywords
Apache bash blog blog.bigsmoke.us CLI CSS Debian DNS Firefox Gentoo Google HTML HTTP iptables Linux MediaWiki mod_rewrite MySQL network PHP plugin postfix RAID Ruby samba Screen shell Sicirec smb SSH ssl Subversion svn T61 thunderbird Ubuntu van der Molen VIM Windows WordPress WWW X xen XTerm zimbra -
Recent Posts
-
Recent Comments
Tag: Apache
Safari: don’t give gzipped content a .gz extension
Yesterday, while helping Caloe with the website for her company De Buitenkok, I came across the mother of all stupid bugs in Safari . Me having recently announced payformystay.com, I loaded it up in Apple's hipster browser only to notice that the CSS wasn't loaded. Oops!
Read More »
Allowing apache to set Nagios cmd file
On debian, to prevent:
Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’! Read More »
Apache rewrite rule to rewrite to sub dir
One one particular site, I wanted to rewrite all requests to a sub dir. It took me over an hour, because of some obscure problem I haven't been able to identify.
Read More »
Rewrite rules to redirect to a temporary offline page
Sometimes you want to take a site offline for a while. You can put this in .htaccess or the vhost config:
Read More »
Preventing IOerror on stdout with modWSGI
By default, you can't use prints in a django app, because mod_wsgi restricts that. You can change that by putting this in your configuration:
Read More »
Changing an apache virtual host to ssl
To change a virtual host in apache to ssl:
#Redirect all normal traffic to the https site.
RewriteEngine on
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]
Read More »
Redirect multiple domains to one
When a site is available under multiple domains, it is usually bad idea to not have them all redirect to one domain. In apache, do this:
Read More »
Disabling debug for mod wsgi
For the record, when deploying mod wsgi apps, remember to enable optimizations in mod_wsgi.conf. Otherwise debug will be true.
Read More »Generating a self-signed SSL certificate
This article explains nicely how to make a self-signed SSL certificate, for Apache for instance:
Read More »
MediaWiki thumb.php and rewrite rules
May, last year, I created an empty draft for this post, because, around that time, I had gone through quite some effort before I got thumbnails for foreign file repos working just right. Now, I'm taking a dive into my MediaWiki working dirs in preparation of the creation of a separate development environment, so it's a good moment to rehash the past experience (almost as good as when I'd have done it right away). Read More »
