Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have configured IIS6 in my windows server 2003 with this link: http://www.simongibson.com/intranet/iis6/

After that I create a new web site inside Web Sites directory. Inside the physical path I created an index.htm that has:

<html>
    <body>Test</body>
</html>

But I got the following error: "The page cannot be found". When I put the same index file inside the Web Site Default physical path, it works.

I configured the new web site with the link above using the IP configuration and without a Host Header.'

What should I do to troubleshoot this or is there an obvious configuration error?

share|improve this question
    
can you explain what the physical path terms you are using are? –  Jim B Jun 14 '12 at 15:21
    
1) IIS may be searching for that file in Default site because you have not specified host header. Since IIS does not know where to look for that file, it searches the first defined site with no host header. Do you see the same if all other sites (including Default site) are disabled? –  LazyOne Jun 14 '12 at 15:21
    
2) It could be file permission issue (it really depends on your configuration) -- Default site has all required permissions while new site (and I assume new physical location) may not have enough access rights –  LazyOne Jun 14 '12 at 15:23
    
@LazyOne 1) But Default Web Site doesn't have a Host Header (host header in IIS is "intranet.domain.com" for exemple) as well, right? –  Vinicius Ottoni Jun 14 '12 at 17:13
    
@LazyOne 2) the physical path permissions of the Default Web Site is the same of the New Web Site. –  Vinicius Ottoni Jun 14 '12 at 17:15
show 1 more comment

3 Answers

You need to place the files in the root of the home directory of the website. I the example you sited that would be c:\inetpub\intranet_live

you should then be able to get a response from http://ipaddress/index.htm

share|improve this answer
    
No, i'm not able, is that i was talking about in the question. =( –  Vinicius Ottoni Jun 14 '12 at 17:07
add comment

IIS6 looks for a file called "Default.asp" or "Default.htm" not "Index.htm". it also says in the very last paragraph of the site you linked:

To make sure your site is operational, make sure you have a valid default.asp file in the home directory and enter the preconfigured access method.

share|improve this answer
    
In the configuration of the IIS you can say which files will be a default page, and "index.htm" is one of them. –  Vinicius Ottoni Jun 14 '12 at 17:09
add comment

Well, i try with another way. I create a virtual directory inside the Web Site Default and register the following dll in prompt:

iisext /AddFile C:\WINDOWS\Microsoft.NET\Framework\v4.x\aspnet_isapi.dll 1 Asp.NETv4 1 Asp.NETv4

So, i have published my web app inside the physical path of the virtual directory, an it works!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.