[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

HTTP Error 404 - File or directory not found...

Hello...

We have a development Server thats "behind our firewall". For debugging we want to expose the logfiles of the server so we can access them from inside the company. I have done this several times before but this server is causing some problems and i am not getting any futher...

I created a virtual directory and pointed it to the \logfiles in the windows folder. I am able to access this directory and browse to the log FOLDERS of the different services on this server. But when i am listing all logfiles for the IIS then I am unable to open a specific logfile. I only get a errormessage that the "File is not found" I doublechecked the security and audited failed authetications but everything looks fins... Anyone have a clue why i am not able to access the log files?

Thanks a lot
0
rdrunner
Asked:
rdrunner
1 Solution
 
meverestCommented:
are the files in use?

does the anonymous iusr have rights to access?

cheers.
0
 
rdrunnerAuthor Commented:
Well they are in use since they are the IIS logfiles. But if i do this on another IIS it works even though they are accessed.

We granted everyone access to those files (Including iusr/me/everyone)
0
 
Dave_DietzCommented:
If this is IIS 6.0 you will need to configure a MIME type for .log files before you can access them.

If this is IIS 5.0 is URLScan installed?

Dave Dietz
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mattisflonesCommented:
>>But when i am listing all logfiles for the IIS then I am unable to open a specific logfile.
So you can access other logfiles of the same type?
0
 
rdrunnerAuthor Commented:
>If this is IIS 6.0 you will need to configure a MIME type for .log files before you can access them.

The IIS6 wont allow access to files which have no mime type?
0
 
Dave_DietzCommented:
No, it will not.  It will generate a 404.3 error and show a Page Cannot be Found error.

You can configure a wildcard MIME type that will allow you to view any file type but this is a potential security risk.

Dave Dietz
0
 
rdrunnerAuthor Commented:
Which Mime type should i generate for this?

The files all end with *.log and contain plain text... I never setup some mimetypes so some help would be appriciated :)
0
 
Dave_DietzCommented:
Best bet would be to use 'log' as the file extension and 'text/plain' as the MIME type.  (Both without quotes...)

Dave Dietz  
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now