/foo/download -> e:\data\foo\download /bar/download -> e:\data\bar\download /baz/download -> e:\data\baz\download ...Now, I can't just map the whole directory "e:\data\foo" into the web server space because "e:\data\foo" can contain files that shouldn't be served via the web server. Only stuff in "e:\data\foo\download" should be available from the web server. And for historical reasons, it has to be available at "/foo/download".
Alias /foo/download e:/foo/download Alias /bar/download e:/bar/download Alias /baz/download e:/baz/download ...But this project is on Windows 2008 Server R2 SP1 with IIS. It seems like virtual directories are the way to go, but I can't create a virtual directory with an "Alias" as "foo/download" (it won't let me type the "/" in there).
^([^/]+)/download(.*)$ -> {R:1}-download{R:2}
Seems to work. But am I missing something? Is there a better way?You are not logged in, either login or create an account to post comments
1) Create a virtual directory for foo, pointing to somewhere safe (c:\emptydir)
2) Underneath foo create the virtual directory for download pointing to your e:\data\foo folder
You could alternatively use the junction command to make a folder that looks the way you want (like using symlinks) but that would be harder for a random admin to work out what is going on.
posted by samj at 3:32 AM on August 31, 2012