TransWikia.com

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

Server Fault Asked by Sk8erPeter on December 16, 2021

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!

One Answer

If I am understanding your question correctly, IIS directory and virtual directory paths are not normally case-sensitive so you can get by creating a virtual directory named "phpmyadmin" and use /phpMyAdmin, /phpmyadmin, /PHPMyAdmin or any other combination of case and you'll get the expected content.

Answered by mahnsc on December 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP