IIS pac and dat files for proxy configuration

Contents

By default, IIS does not issue files with .dat and .pac extensions for automatic proxy configuration. If we try to attach to retrieve the file a 404 error page is displayed.

Allow proxy configuration files

You must declare MIME Types on the IIS server.

1. Open the console, go to server 1 and click on MIME types 2 .

Console IIS

2. In the Actions menu click Add 1 .

Add types mime

PAC file

Extension: .pac 1 .
MIME type: application / x-ns-proxy-autoconfig 2

Click OK 3 to add the type.

DAT

DAT file

Extension: .dat 1 .
MIME type: application / x-ns-proxy-autoconfig 2

Click OK 3 to add the type.

DAT

The IIS service will now respond to the HTTP request.

Romain Drouche

Romain Drouche

System Architect | MCSE: Core Infrastructure

An IT infrastructure expert with over 15 years of hands-on experience. Currently serving as a Systems and Network Project Manager and Information Systems Security (ISS) Lead, I leverage my expertise to ensure the reliability and security of technological environments.

GHinM▶