Allowing the Facebook Debugger Through .htaccess

Here’s a short story; When I develop Facebook web apps, I do it under a password protected development site. Facebook hates this. It complains that it can’t reach urls, it can’t get meta data, it can’t do this, it can’t do that. The downside to not having a password is the fact that anybody can […]

The Switch: Apache + Mod_PHP to Nginx + PHP-FPM

File this under “another thing I should’ve done ages ago.” I decided that I should explore the world of Nginx as a web server since many people have been telling me it’s good. And all I can say is holy shit, it’s good. The setup was simple and after a few idiotic mistakes on my […]

A Pinch of Performance (Apache Tuning)

If you’re using rewrite rules and other special configuration directives on your website, like any Zend Framework site does, you might want to consider the following: Avoiding .htaccess and ‘AllowOverride [not none]’ on large websites. You see, when a person comes along to your site http://myawesomesite.com/some/random/page/in/the/depths/of/hell Apache, if told to AllowOverride will start looking for […]

Summer Project: Status Update

I’ve managed to get my little test server all configured for each path.  This little task involved configuring mod_ruby, mod_perl, mod_python on top of my already standard php. I also had to fire up mod_proxy to mask the jsp directory (which is really going to an apache tomcat server – another box on my network). […]

Zend Framework, Rewrite Rules, Apache

Most of the Zend Framework documentation I’ve read recommends a rewrite rule that looks something like this: RewriteEngine on RewriteRule !\.(swf|js|ico|gif|jpg|png|css)$ index.php Why not use a more elegant rule that looks like this: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php This rule basically says: If it’s not an existing file, and it’s not […]