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
LVL 11
rdrunnerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.