What is the alternative of Apache's global Alias in IIS instead of adding a Virtual Directory to every single sites one by one?

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 17:54 UTC
Read the original article Hit count: 236

Filed under:
|
|
|
|

In Apache, there's a way I can make phpMyAdmin available globally to all VirtualHosts I set up. In Apache, it looks like this:

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

This way I reach phpmyadmin with prepending /phpmyadmin to all my domain names, and I can see phpmyadmin's initial page. (So for example it works for all my domains like this: http://example_1.com/phpmyadmin, http://example_2.com/phpmyadmin, http://example_3.com/phpmyadmin also does work).

In IIS, there's an "Add Virtual Directory..." option when right clicking on a given site. Here I can set up e.g. phpMyAdmin's path to be reached with prepending /phpmyadmin to the given domain (e.g. http://example_1.com/phpmyadmin), but isn't there a "global" setting similar to Apache's Alias?

Or do I have to add a virtual directory to every given sites one by one?
I'm just curious, it's not a hard work to do it, but I'm interested in it if there exists another method to do it.

Thanks in advance!

© Server Fault or respective owner

Related posts about apache2

Related posts about iis