11.07.2015 Views

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

548 Part IV: Securing Your Network, Host, <strong>and</strong> <strong>Application</strong>Machine.Config <strong>and</strong> <strong>Web</strong>.Config ExplainedThe configuration management provided by the .NET Framework encompasses abroad range of settings that allow an administrator to manage the <strong>Web</strong> application<strong>and</strong> its environment. These settings are stored in XML configuration files, some ofwhich control machine-wide settings, while others control application-specificconfiguration.XML configuration files can be edited with any text editor, such as Notepad, or withXML editors. XML tags are case sensitive, so ensure that the correct case is used.Figure 19.1 shows the configuration files used to configure ASP.NET <strong>Web</strong>applications that are available to administrators.Configuration FilesFor the machine For applications For code accesssecurityMachine.config<strong>Web</strong>.configapp.exe.configEnterprise Policyenterprisesec.configFigure 19.1ASP.NET configuration filesMachine <strong>and</strong> UserPolicysecurity.configASP. NET Policyweb_hightrust.configweb_mediumtrust.configweb_lowtrust.configweb_minimaltrust.configThe Machine.config <strong>and</strong> <strong>Web</strong>.config files share many of the same configurationsections <strong>and</strong> XML elements. Machine.config is used to apply machine-wide policy toall .NET Framework applications running on the local computer. Developers can alsouse application-specific <strong>Web</strong>.config files to customize settings for individualapplications.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!