On Mon, Mar 07, 2005 at 08:11:45PM -0800, anthony G wrote: > I'am running Apache 2.0.53 on Windows 2003 Web Edition. I need to > know how to setup multiple Alias 's without having to restart Apache > every time I add them to httpd.conf file. > > For Example I Know I can add this to my Virtual Host in httpd.conf but > then I would have to restart Apache for it to work. > > Alias /UserX "E:\Websites\UserX\ROOT" Sounds like a job for mod_rewrite. You'll need to ensure that you're loading mod_rewrite.so, and then add something like the following (keeping in mind that I'm not a win32 guy, so I'm guessing a bit): RewriteEngine on RewriteRule /([^/]+)/(.*) E:\Websites\$1\ROOT\$2 [L] This will work if all incoming requests are in the form: http://www.example.com/User1 http://www.example.com/User2 etc, If you have *any* directories under '/' that are *not* user directories, then a bit more finagling will be required; something along the lines of: RewriteEngine on RewriteCond %{REQUEST_URI} !^/nonuserdirectory RewriteCond %{REQUEST_URI} !^/another_nonuserdirectory RewriteRule /([^/]+)/(.*) E:\Websites\$1\ROOT\$2 [L] (both these rules are untested; Caveat Administrator) Obviously, the precise recipe will be site-dependant. =) Some mod_rewrite links: http://httpd.apache.org/docs/mod/mod_rewrite.html http://httpd.apache.org/docs/misc/rewriteguide.html I'd recommend playing with this on a test system with RewriteLogLevel cranked up to 9 until you get the behavior you want. --n -- <huey> dd of=/dev/fd0 if=/dev/flippy bs=1024 <huey> ^^^ Making Flippy Floppy --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx