Archive for the ‘ Apache ’ Category
With the release of Leopard last Friday, it appears the bulk of my previous tutorials are now taken care of out of the box. mod_rewrite is enabled by default, and a decent (but not robust) installation of PHP 5.2.4 is ready to go – it only needs to be uncommented in the Apache configuration file. The [ READ MORE ]
UPDATE: This tutorial was written for OS X 10.4 and parts of it are no longer necessary with OS X 10.5. See this post for details. Using a few built-in tools in OS X, I’ve found a great way to develop sites as Virtual Hosts on Apache. If you are a web developer working on a [ READ MORE ]
In web development on the Apache web server, a common configuration file used in nearly every site we build is the .htaccess file. But in OS X, you can’t see it in the Finder – hidden files (files which start with a dot “.”) are unavailable unless you use the Unix command line. I did [ READ MORE ]
When moving our site from ablogapart.org to michaelkrol.com, this handy little bit helped move our entire website with four lines of code: Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(.*)ablogapart.org [NC] RewriteRule ^(.*)$ http://michaelkrol.com/$1 [R=301,L] This reference was extremely helpful. This RewriteRule lives in the .htaccess file at ablogapart.org and tells any request coming in to that domain to swap ablogapart.org out [ READ MORE ]
Tiger has introduced a new super-confusion level to the stock configuration of Apache. In addition to the httpd.conf file in the /etc/httpd directory, there’s now a new users directory as well. That directory holds unique config files for each user of the machine. So, if you were to enable mod_rewrite or AllowOverrides in httpd.conf, you [ READ MORE ]