HTTP 503 from IE6 on dreamhost

It seems that dreamhost somehow returns HTTP 503 if the user agent is exactly “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)”. This is from the modern.ie IE6 windows XP build. wget –user-agent “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)” “http://hellomynameis.org.uk/” –2014-04-09 11:31:18– http://hellomynameis.org.uk/ HTTP request sent, awaiting response… 503 Service Temporarily Unavailable 2014-04-09… Continue reading HTTP 503 from IE6 on dreamhost

Rails 4.0.0 with Ruby 2.0 on a Dreamhost shared server

Build ruby from source. RVM won’t work out of the box because it tries to use sudo. It’s quite easy. cd mkdir build cd build http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz tar xzf ruby-2.0.0-p247.tar.gz cd ruby-2.0.0-p247 ./configure –prefix /home/adamish/ruby # <=== make sure you install to your own home directory make install Make your custom ruby default. Add the following… Continue reading Rails 4.0.0 with Ruby 2.0 on a Dreamhost shared server

HTTP 500s on dreamhost shared hosting

I finally got to the bottom of the occasional HTTP 500 (internal server) errors on weathersupermarket. The apache error log simply contains “premature end of script headers”, which isn’t much help. It turns out on shared hosting servers a background process monitors resource usage (CPU + RAM?) and kills off anything using too much. The… Continue reading HTTP 500s on dreamhost shared hosting

HTTP caching

Often browsers cache when you do not wish them to do so. POST requests by forms are exempt according to RFC 2616, so we only need worry about GET requests. A default installation of apache by default will not serve up expires or cache control headers so caching will vary between browsers. Here are the… Continue reading HTTP caching