|
Home > Archive > IIS Server > December 2004 > How does IIS call a web application?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How does IIS call a web application?
|
|
| drhowarddrfinedrhoward 2004-12-22, 5:54 pm |
| I've learned a lot but can't connect the dots.
When someone visits www.mysite.com, how do I set up IIS to call my
application so I can dynamically create my index page?
I sort of follow what to do if I had an isapi dll but if, instead, I wanted
to run my own C++ file, or even .asm if I wanted, how do I make IIS
understand to call it when it needs index.html?
Is this only possible using isapi calls to send to the client browser?
Does it work differently in IIS5 vs IIS6?
| |
| Richard Gutery 2004-12-22, 5:54 pm |
| I'm not sure that I fully understand what you are asking, so here goes.
You could set the Default Page in IIS,
You could create a Host Header for your App,
You Can load your DLL (if that's what your asking) using Configuration -
Mapping for the app (this assumes that you've created the app in IIS).
???
"drhowarddrfinedrhoward" <drhowarddrfine@earthlink.net> wrote in message
news:1Enyd.40435$nG3.12552@fe05.lga...
> I've learned a lot but can't connect the dots.
>
> When someone visits www.mysite.com, how do I set up IIS to call my
> application so I can dynamically create my index page?
>
> I sort of follow what to do if I had an isapi dll but if, instead, I
> wanted to run my own C++ file, or even .asm if I wanted, how do I make IIS
> understand to call it when it needs index.html?
>
> Is this only possible using isapi calls to send to the client browser?
>
> Does it work differently in IIS5 vs IIS6?
>
| |
| drhowarddrfinedrhoward 2004-12-23, 2:47 am |
| Maybe I should re-word this. When IIS receives a request for the home page
of my website, it looks in the default folder wwwroot for something.
If I click on "properties" of this default root folder, I can go to the tab
marked "home directory" and change the "Application Settings" using the
"Configuration" button.
In this application configuration box I can change the mappings. What
confuses or concerns me is I see a lot of asp and .net settings for
extensions but nothing for .htm or .html. If my main page is "index.html"
how would that be set?
If ALL my web pages were dynamically created by a C++ program, how do I
configure the mapping so this program is called whenver my website is
accessed?
How do I post back to the client browser? Can this only be done through
isapi or are there other methods to do this?
Or am I just in the wrong ballpark?
| |
| Ken Schaefer 2004-12-23, 2:47 am |
| The mappings you see are for ISAPI Extensions. When a request comes in for,
say, .asp file processing is handed over to the mapped ISAPI extension
(asp.dll). ASP.dll then processes the page (this allows the server-side code
to be processed). Plain HTML pages don't really have any server-side
processing. They are just read off the server's hard disk and sent to the
client - this is why you see no mapping for plain .html files.
For what you want to do, you will need to use an ISAPI filter (all requests)
or ISAPI extension (if you just want requests for set file extensions to be
processed).
Cheers
Ken
"drhowarddrfinedrhoward" <drhowarddrfine@earthlink.net> wrote in message
news:LPryd.19856$KP7.2657@fe04.lga...
> Maybe I should re-word this. When IIS receives a request for the home
> page of my website, it looks in the default folder wwwroot for something.
>
> If I click on "properties" of this default root folder, I can go to the
> tab marked "home directory" and change the "Application Settings" using
> the "Configuration" button.
>
> In this application configuration box I can change the mappings. What
> confuses or concerns me is I see a lot of asp and .net settings for
> extensions but nothing for .htm or .html. If my main page is "index.html"
> how would that be set?
>
> If ALL my web pages were dynamically created by a C++ program, how do I
> configure the mapping so this program is called whenver my website is
> accessed?
>
> How do I post back to the client browser? Can this only be done through
> isapi or are there other methods to do this?
>
> Or am I just in the wrong ballpark?
>
| |
| David Wang [Msft] 2004-12-24, 6:32 pm |
| Do you need to dynamically create an index page file, or do you need an
index page that returns dynamic content?
The former does not make sense because it can be implemented via the latter.
The latter is trivial. Just write your ASP page (which is basically dynamic
content) and assign it to be the DefaultDoc in IIS so that it is run as the
index page.
The rest of your questions do not make sense. Please describe what you want
to do, not how you think it should be implemented.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"drhowarddrfinedrhoward" <drhowarddrfine@earthlink.net> wrote in message
news:LPryd.19856$KP7.2657@fe04.lga...
Maybe I should re-word this. When IIS receives a request for the home page
of my website, it looks in the default folder wwwroot for something.
If I click on "properties" of this default root folder, I can go to the tab
marked "home directory" and change the "Application Settings" using the
"Configuration" button.
In this application configuration box I can change the mappings. What
confuses or concerns me is I see a lot of asp and .net settings for
extensions but nothing for .htm or .html. If my main page is "index.html"
how would that be set?
If ALL my web pages were dynamically created by a C++ program, how do I
configure the mapping so this program is called whenver my website is
accessed?
How do I post back to the client browser? Can this only be done through
isapi or are there other methods to do this?
Or am I just in the wrong ballpark?
|
|
|
|
|