digital8 Second Lieutenant
Joined: 29 Sep 2005
Posts: 1002
|
Posted: Fri Oct 07, 2005 11:50 am Post subject: IIS 6 and URLScan |
|
|
I'm migrating a webserver from Win2k Server to Win2003 Server. I have one particular application that runs (java) on the win2k server that loads a file with a .dat extension. I had to add .dat files to the URLScan.ini file to allow it to work. When i migrated the application to Win2003 server, it wont work. I dont know if URLScan is on Win2003 server by default, but I can't find it.. any ideas on how to allow .dat files to be run?
URLScan was, for the most part, only used with IIS 4.0 and 5.0 to provide additional security. In IIS 6.0, Microsoft embedded a lot of the functionality of URLScan in to the application itself, through the use of Web Service Extensions and MIME types.
By default, IIS 6 will only serve files with known MIME types. Try the following steps to add the "DAT" file extension to those allowed by the server.
1. Go to IIS Management Console
2. Right click on "Local Computer", and select properties.
3. Click the "MIME Types" button, and then click "New".
4. Type ".dat" into the extension textbox.
5. Type the appropriate entry into the MIME Type textbox (ex: "text/dat").
6. Click OK.
7. Repeat steps 1-6 for any other extensions you want (rss, xml, zip, tar any others that aren't already set)
8. Restart the IIS (World Wide Web Publishing Service) service.
In addition, you could configure a Web Service Extension to allow the application accessing the DAT file, but the above should do the trick. |
|