--- title: "ASP.NET Modules" lastmodified: '2008-06-25' redirect_from: - /ASP.NET_Modules/ --- ASP.NET Modules =============== Mono provides support for **gzip** encoding and **basic and digest authentication** in *xsp* as modules. These can be used with *mod_mono* too, but as apache already has modules to do that, they are less useful. The modules are in the Mono.Http.dll assembly distributed with mono. Enabling gzip compression in xsp -------------------------------- Add the following inside \...\ in your web.config: ``` xml
  ``` And that's it. It will load Mono.Http.dll from the [GAC](/Assemblies_and_the_GAC) and send compressed responses when the client supports it. Basic and Digest authenticaton ------------------------------ Mono also provides support for [Basic and Digest authentication](http://www.ietf.org/rfc/rfc2617.txt). Both modules get their user list from a XML file that looks like: ``` xml ``` They both need to get the file name containing the users and the realm from the configuration. This is configurable using \ in your web.config file. The following example is valid for **basic** authentication. Replace "Basic" with "Digest" and you'll get the equivalent **digest** configuration: ``` xml ``` Now we need to enable the corresponding module. This is done by adding the following line inside \...\ in your web.config file: ``` xml ``` Again, replace "Basic" with "Digest" and you'll get the configuration for digest authentication.