What is the alternative of Apache's global Alias in IIS? (e.g. Alias /phpMyAdmin "c:/AppServ/www/phpMyAdmin")

Posted by Sk8erPeter on Server Fault See other posts from Server Fault or by Sk8erPeter
Published on 2011-11-27T01:42:14Z Indexed on 2011/11/27 1:52 UTC
Read the original article Hit count: 184

Filed under:
|
|
|
|

I know there's an "Add Virtual Directory..." option in every given sites in IIS with which I can set up e.g. phpMyAdmin's path to be reached with prepending /phpmyadmin to the address (e.g. http://example.com/phpmyadmin), but isn't there a "global" setting similar to Apache's Alias?

For example, in Apache this setting looks like this:

<IfModule mod_alias.c>
    Alias /phpMyAdmin "c:/AppServ/www/phpMyAdmin"
    Alias /phpmyadmin "c:/AppServ/www/phpMyAdmin"
</IfModule>

This way I reach phpmyadmin with every hosts. (http://example1.com/phpmyadmin, http://example2.com/phpmyadmin also does work)

But in IIS, do I have to add a virtual directory to every sites? I'm just curious, because we would like to serve some domain's content, so there would be multiple sites. It would be more comfortable to do it once (or have the opportunity to remove it once), but if I have to, I do add a virtual directory for each sites. (I know, maybe it's the better solution, because I can have a site where I don't want phpmyadmin to be available, but I was just curious.)

Thanks in advance!

© Server Fault or respective owner

Related posts about apache2

Related posts about iis