Hello,
I would like to development an ISAPI Filter that performs the following functionality:
1. Load user virtual directory list from:
C:\\Windows\\System32\\inetsrv\\config\\applicationHost.config
2. Load physical user directory list from:
c:\\www2\\
will be 13,000 directories. Example:
user1
mikesite
usersite
user2
3. Store step1 and step2 information in memory and update memory every 1 minute.
4. When a HTTP request (look at header information for subdomain like 'usersite'.mydomain.com is found. Perform check from step 3 and if application does not exit then convert directory to application before before HTTP request is completed so user can access site without getting an error.
For example, if a user accesses usersite.mydomain.com and an application does not exist a configuration error occurs, because the user directory is listed c:\\www2\\web.config
We are doing this to prevent this configuration error.
Purpose: The purpose of this project is to prevent IIS from crashing. When the applicationHost.config file reaches 3.2 MB IIS crashes. As a result I would like to create applications only for active users and not waste resources. As a result only active users will have their directory converted to an application.
This is an idea if you have a better way for implementation we can do it that way.
Thank you.
About the recuiterMember since Mar 14, 2020 Pavan Kumar G
from Central Serbia, Serbia