Questions tagged [web.config]

A configuration file for ASP.NET web applications in XML format.

116 questions
4
votes
3 answers

How to forbid usage of web.config files?

I have a Windows 2008 R2 server with IIS7.5 installed. I need to provide users with read-write access to some directory tree via WebDAV. The same users will also be able to reach the same directories by other means - FTP, SFTP, CIFS, etc. My aim: I…
Cat Mucius
  • 155
  • 1
  • 11
4
votes
1 answer

Use appcmd.exe to enable gzip compression on dynamic content on IIS 7.x

Every doc I can find discusses editing applicationHost.config in notepad to enable this. The real need: a) Via appcmd.exe or cmd line tool, enable dynamic compression to be configured in web.config (e.g. to set applicationHost.config ->…
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
4
votes
0 answers

How can I password protect an IIS directory with only FTP access?

How can I password protect an IIS directory when I only have FTP access to the server? I can't adjust any IIS settings or add users or anything like that. The answer to: IIS Basic Authorization ala .htaccess/.htpasswd in apache does not help as I…
Tony Adams
  • 163
  • 8
4
votes
0 answers

IIS7 proxying VisualSVN server refuses to allow Web.config files to be committed

I use IIS 7.5 with the Application Request Routing and URL Rewriting modules to act as a reverse proxy for several apache-based web sites, including VisualSVN Server. I'm having a problem when I try to commit a Web.config file, TortoiseSVN gives me…
Tim Long
  • 1,738
  • 1
  • 21
  • 41
4
votes
1 answer

Web.config modification to block search engines from crawling pdfs

I'm trying to stop web crawlers from indexing pdf files on a website. I know how to do this with an .htaccess file but not in a web.config file. This snippet will stop crawlers from indexing the whole site correct? What do I need in order to just…
robb
  • 145
  • 4
3
votes
2 answers

Add Website Host name - should I include www prefix?

When adding a new website to IIS, the Binding section requires the host name, and gives an example as: Example: www.contoso.com or marketing.contoso.com When creating my website for zuggler.com, when should I include the www prefix? Note that I…
Jonathan Wood
  • 269
  • 1
  • 3
  • 13
3
votes
1 answer

file change auditing (especially for web.configs)

We occasionally have configurations in web.config(s) being changed by the IT team on live production servers. I would like to create an audit trail, e.g., "On October 11 the property "foo" in file "bar" was changed to "banana". My first thought was…
mhenry1384
  • 535
  • 6
  • 15
3
votes
1 answer

IIS 7 Redirect from HTTP to HTTPS fail with ampersand in URL

IIS 7 on Windows Server 2008 R2 SP1 I have added the following rule to my web.config to redirect all incoming request to HTTPS
3
votes
1 answer

IIS web.config Old URL to New URL redirects

I'm new to redirects and having a hard time getting these to work, I have about 1400 URL's from an old site that need to redirect to a new site, same domain name, but different folders and domain strings. Here's what I have that currently does not…
user221535
  • 33
  • 1
  • 3
3
votes
2 answers

Block directory access in IIS but allow specific file through

Is it possible to block access to a directory through the web.config in IIS (excluding a small set of IPs) but allow through one specific file for everyone. The reason I ask, I want to block the wp-admin directory in WordPress but the admin-ajax.php…
chrisd
  • 81
  • 1
  • 4
3
votes
0 answers

application/json content doesn't get gzip'ed with IIS

We have some rather lengthy AJAX calls in our app, some of which transmit over 100k of data across a rather slow encrypted network. I'd like to enable G-Zip compression on application/json to speed this up a bit. However, I'm having a tough time! …
Mike Christensen
  • 965
  • 1
  • 11
  • 21
3
votes
1 answer

server response tags

if a server response header is added to a config file of a site, does it display in IIS 7 as a server response header? I am having a problem where a no index response header (tag) is repeatedly being added to a high profile website. This no index…
Andy Smith
  • 43
  • 3
2
votes
0 answers

Is there a way i can track which IIS server redirects are being used

Our web.config file has 1300 redirects in it and growing all the time. Its a mixture of 4 site rebuilds over 15 years and marketing vanity URLS. My question is 3 part. does having to search through 1300 redirects every time a vanity url is used…
PJSANTA
  • 21
  • 1
2
votes
0 answers

Manage passwords stored in web configs located on a server

We have a number of servers that perform different functions and every 60 days we do password refreshes. Normally this isn't an issue but we have these passwords stored in web configs all over the place (sql connections strings for example). We…
2
votes
2 answers

Two website with SSL on NGINX. Sequence and redirect

I have two website with SSL on NGINX. When curl -I https://www.1111.com answer: https://1111.com But when curl -I https://www.2222.com answer: https://1111.com curl -I https://2222.com answer https://2222.com In nginx.conf i try change sequence…