Questions tagged [web.config]

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

116 questions
2
votes
1 answer

IIS 7.5 ignoring local HTTP handlers

I am trying to serve a simple proxy application for a web service. For this purpose, I have a HTTP Handler that passes on any request to my website to another website configured in the web.config. The proxy has been tested locally and it works…
bsempe
  • 21
  • 3
2
votes
1 answer

How to configure 503 (service unavailable) response header in IIS 7 web.config?

My site is on a shared host and I need to do some maintainance work, which needs downtime. For SEO reasons I need to cause a 503 http response to be sent to clients. How can I do that from my web.config file (or any other method?)
Irena
  • 41
  • 3
2
votes
1 answer

Configuring WordPress rewrite rules on IIS7.5 inside virtual application

I have to configure WordPress into a virtual application under a principal website running on ASP.NET 2.0 Classic mode. Everything is working fine, PHP 5.3.13 / MySQL 5.1 / IIS 7.5, the wordpress site also work fine, except for the rewriting…
Marc-Andre R.
  • 2,477
  • 3
  • 23
  • 21
2
votes
1 answer

customErrors="RemoteOnly" not working properly in Server 2008

It would appear that on my brand new Windows Server 2008 with IIS7, customErrors is not working. We have customErrors set to RemoteOnly in the web.config on our Asp.Net sites and applications. However, no matter what we do, it would appear that our…
Armstrongest
  • 189
  • 1
  • 4
  • 9
2
votes
1 answer

PHP error_log function not working after upgrading to IIS 7.5

I'm using error_log which has been working fine for years under IIS 6. Recently I upgraded to IIS 7.5 (Windows 7) and the messages logged by error_log stop appearing. In fact nothing is going to the log. If I call an incorrect function to force a…
Al Henderson
  • 141
  • 1
  • 6
2
votes
1 answer

Can I configure IIS to use the same physical path for different sites but use custom web.config

First, let me provide you with the outcome I'd like to see. I unbundle my "application" (pages, code and assemblies) once into a directory. I use the same application (pages, code and assemblies) to drive multiple sites. I apply custom…
Ajaxx
  • 125
  • 1
  • 3
2
votes
1 answer

should the same machine key be used in development and production environments?

Our production servers all have the same machine key. However, our production and development systems do not have identical machine keys. We get heaps (about one per second) of exceptions of the…
2
votes
1 answer

IIS10 not saving (all) configuration details to site's web.config

The web.config on a fresh IIS install contains the sites configuration details, except for . However, the (site local) IP restrictions work fine and can be edited through the IIS manager console. In my web.config I do see things…
bjoster
  • 4,805
  • 5
  • 25
  • 33
1
vote
0 answers

redirect specific ip range in IIS

I want to redirect [not blocking them] all the ip's in between 83.116.119.0 to 255.255.255.0 Please help me to write a pattern in my code(IPTOBEBLOCKED). Am a newbie in web.config , Here is my code
bibin john
  • 11
  • 2
1
vote
1 answer

Redirecting subdomain test.mydomain.com/default.aspx to subfolder test.mydomain.com/test/default.aspx

Running IIS7 for an asp.net website. I have a subfolder called "test" setup as an application root. I have my test site deployed to that test folder. The root site folder has a webconfig with the following rewrite rules:
Dave
  • 11
  • 3
1
vote
0 answers

Side effects of large config file in IIS

I've split out the ipSecurity section of my web.config file to it's own file. I use this files to block users from countries other than Canada/USA. This file is 2.6 MB in size as it contains IP deny entries for the whole world. I had to override…
Tomas Beblar
  • 121
  • 7
1
vote
0 answers

how do I modify php verbs web.config

I have a project that needs the PUT request enabled for PHP. By default GET, HEAD, and POST are enabled but I need to enable PUT verb from my web.config, not from IIS manager. How can I do this?
1
vote
1 answer

Rewrite URL from HTTP to HTTPS in IIS for specific domains

I need to make a global rule that rewrites all http://example.com/ to https://example.com/. I host multiple domains and my attempts either don't work or work on all domains. I put this in my applicationHost.config:
1
vote
0 answers

Copy PHP website to virtual folder under IIS 8.5

I would like to make an existing PHP Website (Apache) run on a virtual folder under IIS 8.5. With the help of some nice online tools I translated the following .htaccess content: RewriteEngine On RewriteBase / RewriteRule…
1
vote
2 answers

Web.config file permissions

I would like to lock down the web.config file as much as possible, so that as few accounts as necessary can read the file. I saw the list here http://msdn.microsoft.com/en-us/library/ms178699.aspx but allowing the Users group read permission on the…
ristonj
  • 153
  • 2
  • 6