One of the things that really bugs me about IIS is that you can't run multiple web sites under XP Pro. I guess Microsoft assumes "Pros" will have an XP Server box for every developer. This is the main reason I use Apache on my dev box and my laptop.
A coworker pointed me to an ISAPI filter called MultiSite. You can find it here. I haven't tried it yet, but it seems like the perfect solution.
Comment 1 written by Webdump on 27 December 2004, at 9:07 AM
Comment 2 written by Raymond Camden on 27 December 2004, at 9:22 AM
Comment 3 written by jared chandler on 27 December 2004, at 1:57 PM
Comment 4 written by Raymond Camden on 27 December 2004, at 2:08 PM
Comment 5 written by jared chandler on 27 December 2004, at 3:15 PM
ErrorDocument 404 template.cfm
and that seems to trap for missing .CFM's.
Comment 6 written by Raymond Camden on 27 December 2004, at 3:23 PM
Comment 7 written by jared chandler on 27 December 2004, at 3:32 PM
Comment 8 written by Raymond Camden on 27 December 2004, at 4:58 PM
Comment 9 written by balthor on 27 December 2004, at 6:09 PM
http://www.firstserved.net/services/iisadmin.php
Comment 10 written by jared chandler on 27 December 2004, at 10:13 PM
1) Build apache (in this case 1.3.31) with mod_rewrite support:
$ ./configure --prefix=/path/to/apache \
--enable-module=rewrite \
--enable-shared=rewrite
$ make
$ make install
2) Add the appropriate LoadModule call to httpd.conf:
LoadModule rewrite_module libexec/mod_rewrite.so
3) make a directory off root (in this case "stuff"), and add an error handling template named error.cfm. I just stuck a <cfdump var="#cgi#"> in it.
4) make a .htaccess file with the following:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /stuff/error.cfm
5) restart apache and throw some urls at it.
6) Problems: All the CGI variables are blank. There should be some further fiddling with mod_rewrite which will let you copy over the various cgi setting, but that's for another night.
Comment 11 written by jared chandler on 27 December 2004, at 10:26 PM
Put this in .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /stuff/error.cfm?%{REQUEST_URI}
Comment 12 written by Raymond Camden on 28 December 2004, at 6:38 AM
Comment 13 written by jared chandler on 28 December 2004, at 9:24 AM
Comment 14 written by anthony petruzzi on 3 January 2005, at 12:55 PM
Did you noticed the solution that jared chandler wrote above for your template problem? Kinda of a monster isn't it.
All I know is when I'm developing I need to work, not screw around. IIS is simple to install and simple to get working. Apache has always been a PITA for me. If you don't compile it a certain way, stuff doesn't work. Want to add something, you need to compile it again with the module. With IIS you can simply add the filter.
Personally I don't have a problem with the multiple site issue. I have a copy of Win2K Server (and yes I bough it) running in a VMWARE (bought that too) virtual machine on my WINXP box.
Comment 15 written by John Farrar on 9 January 2005, at 11:26 AM
John Farrar
Comment 16 written by Jeff Wilkinson on 17 January 2005, at 3:53 PM
[Add Comment] [Subscribe to Comments]