« Previous Next »

Thread: Wildcard in Default Document

Last post 10-07-2008 12:53 PM by CarlosAg. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-07-2008, 6:51 AM

    • canadaka
    • Top 100 Contributor
    • Joined on 08-17-2006, 11:10 PM
    • Vancouver, Canada
    • Posts 63

    Wildcard in Default Document

    Is there any way to add a wildcard variable in a 'default document' entry?

     Something like "awstats.DOMAINNAME.html" where DOMAINNAME changes folder to folder.

  • 10-07-2008, 12:21 PM In reply to

    Re: Wildcard in Default Document

    Hi,

    I honestly don't understand how you would define a variable that changes. It would require quite much logic to get the folder name for the current folder. Wouldn't it be easier to create a file awstats.html for each domain name and place it in each folder?

    But to answer your question, no, you cannot do what you want with the defaultDocument property. 

  • 10-07-2008, 12:53 PM In reply to

    Re: Wildcard in Default Document

    You can easily achieve that using URL Rewrite module where you can use Wildcards to grab the folder name and then use the backreference to use it to rewrite the path to the file you need using that.

    http://forums.iis.net/1152.aspx

     

Page 1 of 1 (3 items)
Microsoft Communities