Fri, 09 Apr 2004


virtual hosts and cgi


I had this working before, mostly with the help of this script [citation on][post on] Because of my iBook mishaps, all my tweaks were wiped, and I haven't had the time to reinstate the changes.

So this is what I did (essentially doing everything that the script does manually):

  1. Open /etc/httpd/httpd.conf
  2. Find the line #AddHandler cgi-script .cgi and remove the #
  3. Add the following lines to the end of /etc/httpd/httpd.conf: NameVirtualHost Include /private/etc/httpd/virtualhosts
  4. In /private/etc/httpd/virtualhosts, create a file named _localhost
  5. The contents of this file should be: <VirtualHost> DocumentRoot "/Library/WebServer/Documents" ServerName localhost <Directory "/Library/WebServer/Documents"> Options All AllowOverride None <Directory </VirtualHost>
  6. Again, in /private/etc/httpd/virtualhosts, create a file with the same name as the virtual host name. For example, if you want a host that will be accessed with http://blog, create a file named blog
  7. The contents of this file should be as follows (Replace $USERNAME with your username and $VHOSTNAME with your desired hostname <VirtualHost> DocumentRoot "/Users/$USERNAME/Sites/$VHOSTNAME" ServerName localhost <Directory "/Users/$USERNAME/Sites/$VHOSTNAME" Options Indexes FollowSymLinks ExecCGI AllowOverride All </Directory> </VirtualHost>
  8. Open a root shell by typing sudo bash and entering your password
  9. Run the following commands (again, replace $VHOSTNAME with your desired hostname): niutil -create . /machines/$VHOSTNAME niutil -createprop . /machines/$VHOSTNAME ip_address niutil -createprop . /machines/$VHOSTNAME name $VHOSTNAME niutil -createprop . /machines/$VHOSTNAME serves './local'
  10. Restart apache with apachectl restart.

15:10:46 9 Apr 2004 > /computers/macosx/unix > permalink > 4 comments

Sun, 04 Apr 2004


emacs carbon


Don't ask me how I got here, but trying to install GNOME 2.6 on my iBook running Panther is taking me to really strange places.

While a pre-built binary for Emacs 21.3.50 on Carbon (built on 2003-10-25) already exists (which I'm currently using), I thought I'd try building it from CVS myself (following these instructions)

(Since Andrew Choi has apparently resigned from maintaining the Carbon port, the continued existence of his webpage is in question, and so the instructions go something like this:)

export CVS_RSH="ssh" cvs -z3 co emacs cd emacs ./configure --with-carbon --without-X make bootstrap sudo make install

The main reason is to see whether I can get Károly Lőrentey's multi-tty support to work. (I applied his frequently updated patches.)

15:38:44 4 Apr 2004 > /computers/macosx/unix > permalink > 1 comments

Fri, 02 Apr 2004


fam 2.7.0 macosx patch


I have begun the long, lonely journey of compiling GNOME 2.6, and the first roadblock I hit was in the prereqs with fam. Now I realize that you only really need this for Nautilus, and since I'm running MacOSX, I don't really need to use it as a file manager (although, surprisingly, there are times when it can be handy.) But I am a resolute pedant.

So I collected the FreeBSD patches for fam 2.6.8, applied them to the fam 2.7.0 source, did a little more tweaking specific for Darwin, and came up with this patch. So fam now compiles, but I don't know if it actually works.

It's pretty amazing the things you can do with code without even understanding a single line of it.

(The cleaner thing to do would be to utilize MacOSX's built-in file-change notification, but I have no idea how to do that.)

21:05:27 2 Apr 2004 > /computers/macosx/unix > permalink > 232 comments