Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  how to monitor IIS requests  
Author Message
TJ

External


Since: Oct 20, 2005
Posts: 5



(Msg. 1) Posted: Wed Feb 21, 2007 1:02 pm
Post subject: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hello All,

We have configured IIS 6 websites using Host Header to have multiple
domain names mapped to a single website (to optimize the IIS resource
utilization) . However, I want each domain to be pointing to a
different folder, something like:

website1
|-------Root
|-------Domain1
|-------Domain2
|-------Domain3

website2
|-------Root
|-------Domain4
..... and so on

The webiste1 HomeDirectory points to website1\Root, while I need all
Host Header (domain names) to point to their respective Folders. This
'Domain Name to Physical Path' mapping is kept in a text file.

We wrote an ISAPI Filter which is registered for IIS Event
'SF_NOTIFY_URL_MAP', and it fetches the information from the text file
and accordingly changes the PhysicalPath for the incoming HTTP
Requests.

This setup is working for all types of file extensions so far
including ASP.NET 1.1

Recently we have installed .NET Framework 2.0 and configured all
ScriptMaps to use version 2.0 (aspnet_regiis -r), and since then the
redirection explained above does NOT work for ASP.NET pages. Any
domainName which has ASPX page is looked at in HomeDirectory of the
corresponding website, while any other file extension is picked from
the configured mapping.

Can somebody please explain this behavior? Is it because of 'Faulty
Installation/Configuration' of .NET 2.0?

Thanks in advance
~TJ

 >> Stay informed about: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 
Back to top
Login to vote
wadeh

External


Since: Sep 03, 2003
Posts: 115



(Msg. 2) Posted: Wed Feb 21, 2007 8:05 pm
Post subject: Re: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi TJ,

The problem is that ASP.NET 2.0 doesn't use the physical filename provided
by IIS. It calculates the physical filename based on configuration data.

The only way that I know of to make this work with ASP.NET 2.0 is to rewrite
the URL instead of the physical file. You would do this by moving from the
SF_NOTIFY_URL_MAP to the SF_NOTIFY_PREPROC_HEADERS notification.

Thank you,
-Wade A. Hilmo,
-Microsoft

"TJ" <tj_tronics.RemoveThis@yahoo.com> wrote in message
news:1172091742.377627.283610@t69g2000cwt.googlegroups.com...
>
> Hello All,
>
> We have configured IIS 6 websites using Host Header to have multiple
> domain names mapped to a single website (to optimize the IIS resource
> utilization) . However, I want each domain to be pointing to a
> different folder, something like:
>
> website1
> |-------Root
> |-------Domain1
> |-------Domain2
> |-------Domain3
>
> website2
> |-------Root
> |-------Domain4
> .... and so on
>
> The webiste1 HomeDirectory points to website1\Root, while I need all
> Host Header (domain names) to point to their respective Folders. This
> 'Domain Name to Physical Path' mapping is kept in a text file.
>
> We wrote an ISAPI Filter which is registered for IIS Event
> 'SF_NOTIFY_URL_MAP', and it fetches the information from the text file
> and accordingly changes the PhysicalPath for the incoming HTTP
> Requests.
>
> This setup is working for all types of file extensions so far
> including ASP.NET 1.1
>
> Recently we have installed .NET Framework 2.0 and configured all
> ScriptMaps to use version 2.0 (aspnet_regiis -r), and since then the
> redirection explained above does NOT work for ASP.NET pages. Any
> domainName which has ASPX page is looked at in HomeDirectory of the
> corresponding website, while any other file extension is picked from
> the configured mapping.
>
> Can somebody please explain this behavior? Is it because of 'Faulty
> Installation/Configuration' of .NET 2.0?
>
> Thanks in advance
> ~TJ
>

 >> Stay informed about: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 
Back to top
Login to vote
Steve Schofield

External


Since: Nov 26, 2006
Posts: 221



(Msg. 3) Posted: Wed Feb 21, 2007 10:49 pm
Post subject: Re: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm not sure what your ISAPI is doing wrong. There is a 3rd party one that
would do exactly what you need. www.isapirewrite.com

--

Steve Schofield
Windows Server MVP - IIS
ASPInsider Member - MCP

http://www.orcsweb.com/
Managed Complex Hosting
#1 in Service and Support

"TJ" <tj_tronics.RemoveThis@yahoo.com> wrote in message
news:1172091742.377627.283610@t69g2000cwt.googlegroups.com...
>
> Hello All,
>
> We have configured IIS 6 websites using Host Header to have multiple
> domain names mapped to a single website (to optimize the IIS resource
> utilization) . However, I want each domain to be pointing to a
> different folder, something like:
>
> website1
> |-------Root
> |-------Domain1
> |-------Domain2
> |-------Domain3
>
> website2
> |-------Root
> |-------Domain4
> .... and so on
>
> The webiste1 HomeDirectory points to website1\Root, while I need all
> Host Header (domain names) to point to their respective Folders. This
> 'Domain Name to Physical Path' mapping is kept in a text file.
>
> We wrote an ISAPI Filter which is registered for IIS Event
> 'SF_NOTIFY_URL_MAP', and it fetches the information from the text file
> and accordingly changes the PhysicalPath for the incoming HTTP
> Requests.
>
> This setup is working for all types of file extensions so far
> including ASP.NET 1.1
>
> Recently we have installed .NET Framework 2.0 and configured all
> ScriptMaps to use version 2.0 (aspnet_regiis -r), and since then the
> redirection explained above does NOT work for ASP.NET pages. Any
> domainName which has ASPX page is looked at in HomeDirectory of the
> corresponding website, while any other file extension is picked from
> the configured mapping.
>
> Can somebody please explain this behavior? Is it because of 'Faulty
> Installation/Configuration' of .NET 2.0?
>
> Thanks in advance
> ~TJ
>
 >> Stay informed about: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 
Back to top
Login to vote
TJ

External


Since: Oct 20, 2005
Posts: 5



(Msg. 4) Posted: Thu Feb 22, 2007 4:51 am
Post subject: Re: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Wade,

Thanks for the reply. Few more questions...

> The problem is that ASP.NET 2.0 doesn't use the physical filename provided
> by IIS. It calculates the physical filename based on configuration data.

[TJ]: So isn't this change in behavior over ASP.NET 1.1 and ASP.NET
2.0 Request Processing? If it is, then is there any way this
'behavior' can be toggled?

> The only way that I know of to make this work with ASP.NET 2.0 is to rewrite
> the URL instead of the physical file. You would do this by moving from the
> SF_NOTIFY_URL_MAP to the SF_NOTIFY_PREPROC_HEADERS notification.

[TJ]: This option will not work in our case. But is using HTTP Modules
(or Handlers) in such a situation helpful? I know this will only be
available for ASP.NET, but I cannot think of any other option.

Thanks,
Tarun
 >> Stay informed about: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 
Back to top
Login to vote
wadeh

External


Since: Sep 03, 2003
Posts: 115



(Msg. 5) Posted: Fri Feb 23, 2007 4:08 pm
Post subject: Re: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Tarun,

To answer your two questions:

1) Yes, this is a change between ASP.NET 1.1 and 2.0. And, no, I don't
think it can be toggled.

2) I am not familiar with the ASP.NET module API, but yes, I believe that
the mapping can be done there. As you say, this would be a solution that
only applies to ASP.NET.

Thank you,
-Wade A. Hilmo,
-Microsoft

"TJ" <tj_tronics.RemoveThis@yahoo.com> wrote in message
news:1172148709.051886.37950@v33g2000cwv.googlegroups.com...
>
> Hi Wade,
>
> Thanks for the reply. Few more questions...
>
> > The problem is that ASP.NET 2.0 doesn't use the physical filename
provided
> > by IIS. It calculates the physical filename based on configuration
data.
>
> [TJ]: So isn't this change in behavior over ASP.NET 1.1 and ASP.NET
> 2.0 Request Processing? If it is, then is there any way this
> 'behavior' can be toggled?
>
> > The only way that I know of to make this work with ASP.NET 2.0 is to
rewrite
> > the URL instead of the physical file. You would do this by moving from
the
> > SF_NOTIFY_URL_MAP to the SF_NOTIFY_PREPROC_HEADERS notification.
>
> [TJ]: This option will not work in our case. But is using HTTP Modules
> (or Handlers) in such a situation helpful? I know this will only be
> available for ASP.NET, but I cannot think of any other option.
>
> Thanks,
> Tarun
>
 >> Stay informed about: IIS 6 | URL Mapping with ISAPI Filter | ASP.NET 2.0 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ISAPI Filter in VB6 - Is it possible to write an ISAPI filter in VB6 (or VB.net for that matter). If so, how? Please? TIA, Owen

ISAPI filter - Hi! We are doing some brainstorming to find new ways to develop out product in a couple of different areas. One way to go includes writing an ISAPI filter that "runs" before the ASP code gets parsed. The reason for doing this is that we want ...

IIS 6.0: How to add isapi filter? - In IIS 5.0, adding an isapi filter was straight forward via ISM Admin tool using property pages. I tried the same steps in IIS 6.0, however I can't get the filter to load. Is there something that needs to be setup/configured else where: 1. Web Service..

ISAPI Filter - Hello! Could anybody suggest me a good IIS 6 diagnostic tool to find ISAPI filter bottlenecks and optimize IIS? Thank You! James

ISAPI Filter monitoring - Hey All, using windown 2000 server with iis 5.0 installed used a dll as ISAPI Filter on one of my website does someone know any tool or program, that i can chek the dll ISAPI filter, as memory usage, cpu, etc... Thanks you all stiv.
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]