1 year ago
#383185
C4llumD
Apache mod_alias type functionality in IIS (10)
Wondering if it's possible to implement in IIS10 actions similar to those provided by mod_alias for Apache, specifically "Alias" to map a filename from an HTTP request to a common local path outwith that site's DocumentRoot or Physical Path rather than rewriting to an alternative location within the site or redirecting to another URL.
In Apache I have an "Alias" declaration configured at the global level:
Alias /contact.php "/var/www/contact.php"
This declaration is inherited by each VirtualHost (site definition) so that a call to "/contact.php" at any site (e.g.: https://example.com/contact.php etc) will cause the single common file "/var/www/contact.php" to be processed.
The configuration as described above simplifies site management since it is not necessary to deploy and maintain a duplicate file across multiple Web site content directories.
Is there a way to mimic this in IIS10?
I have looked at URL rewrites, application and virtual directory definitions among others and have been unable to find a configuration which exactly meets the requirement.
TIA
iis
iis-10
mod-alias
0 Answers
Your Answer