The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
2k views

IIS access control by IP address for specific files and folders

I am pretty new to IIS and I want to secure access to a management console of a web app. By design of application there's a virtual directory that's intended for public access, but at the same time ...
0
votes
0answers
8 views

How can you set PHP-CGI in IIS to run in the same app domain as an asmx web service?

We have an IIS web server that's running PHP-CGI, a few asmx web services, and some other things on the same general website. That being said, I've created a dll that is used by the web services ...
1
vote
1answer
1k views

HTTP Error 500.19 - IIS Error

I have following lines in my web.config file. All I am trying to achieve is to display a custom error page if anything goes wrong in application. But instead of getting the custom page I get error as ...
2
votes
1answer
49 views

Redirect in web.config because of certificate issues

I'm running some websites on a IIS 7.5 with one UCC SSL certificate, where 10 domains are secured. most of them are something.company.ch, some are something.anothercompany.ch we have a redirect rule ...
0
votes
0answers
14 views

IIS 8 cant find Web.Config file

We currently have a windows server 2012 r2 running 6 websites and im currently in the process of moving these to a new windows server 2012 r2 I've started moving 1 website by moving all the files, i ...
1
vote
0answers
22 views

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: <IfModule ...
0
votes
0answers
11 views

One web application with a lot of web configurations

We have a web application, installed several times on different servers each time with a different configuration file. These configurations files change the behavior of the web application and right ...
2
votes
1answer
119 views

ASP.NET MVC Getting Error 504 after 10 minutes of File Upload

I have an ASP.NET MVC2 Web application, working with SQL Server 2008 R2, running with IIS 6.2. I have a functionality where one particular admin needs to upload about 5000 documents, which then get to ...
0
votes
0answers
22 views

IIS appends /web.config at the end of static files

I am trying to debug a 401 error in IIS that happens when serving static files to an anonymous user. Let's say I'm trying to access https://example.com/sso.css. That file physically resides on ...
16
votes
3answers
21k views

IIS7 - Lock Violation error, HTTP handlers, modules, and the <clear /> element

I have an ASP.NET site that uses its own set of HTTP handlers and does not need any modules. So, in IIS6, all I had to do was this in my web.config: <httpModules> <clear /> ...
0
votes
0answers
10 views

Multiple domains pointing to one server. Using a rewrite rule to set preferred domain

I just launched a new website for a client. As part of the new launch I want to try and sort out their domains. Currently they have 3 domains all pointing to the same server which is bad when it comes ...
0
votes
0answers
58 views

IIS url rewrite with rewritemaps non working

on IIS 7 windows 2008r2 we are have URL rewrite module working with external rewrite config files working fine. When I try to add an extral rule to redirect a special path to another site it doesn't ...
0
votes
1answer
152 views

IIS web.config: show directory listing when served from specific server?

In IIS I want directory listing to be enabled when served from the test server. With the same web.config I don't want directory listing to be enabled on the production server. Is this possible? The ...
3
votes
1answer
286 views

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 ...
2
votes
1answer
2k views

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 ...
0
votes
0answers
159 views

Remove .php extension only in certain directory - web.config

I'm having trouble making the pattern for matching the urls in a certain directory. I want to redirect users from mysite.com/posts/some-post.php to mysite.com/posts/some-post meaning that I want to ...
0
votes
1answer
482 views

Is there a cmd tool to check a web.config file for validity?

When you have a malformed web.config and try and edit part of it in the GUI it will popup a box saying so and telling you the line it broke on. Is there a way to access this functionality thought the ...
-1
votes
1answer
261 views

why changing a web.config to a Windows mode does not affect IIS authentication settings?

I read the article https://msdn.microsoft.com/en-us/library/532aee0e(v=vs.100).aspx it says that default authentication in Framework 4 is Windows mode. Well, I create a MVC 4 Internet template ...
0
votes
0answers
195 views

web.config rewrite rule from subdomain to folder using root web.configs connection string

We have a rewrite rule in place to forward demo.website.com to the subfolder which contains the Demo website (website.com/Demo). The problem is that it is still using the root web.configs db ...
5
votes
2answers
4k views

Prevent URL Rewrite rules from being inherited by subdirectories in IIS7

I have a URL Rewrite setup for clean URLs in a CMS and my web.config looks like this: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> ...
1
vote
1answer
37 views

Apache 2.4 nasted location with exeptions

I have a problem with my apache2.4 configuration. I have multiple services served by the apache reachable through: www.example.com/http-service/ -> proxy pass config www.example.com/webservice2/ -> ...
7
votes
4answers
32k views

IIS7: How to block access with a web.config file?

I know that IIS7 allows me to have a per directory configuration with the web.config xml file. I have a directory with some configuration files that don't want to be web accessible. A local web.config ...
3
votes
1answer
221 views

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 <rule name="HTTP to HTTPS redirect" stopProcessing="true"> ...
27
votes
4answers
47k views

IIS complains about a locked section - how can I find out where it's locked?

I have this section in my web.config: <system.webServer> <modules runAllManagedModulesForAllRequests="true" /> <security> <authentication> ...
0
votes
0answers
195 views

Web.Config size limit for Azure Websites

I have an ASP.NET web application which I am migrating to Microsoft Azure. For various reasons, our web config file has grown to be rather large. On our "on site" instance, we have solved this by ...
1
vote
1answer
431 views

Is there any way to disable an ISAPI filter at the application (NOT site) level in IIS 7.5?

We have a number of applications running under a single IIS site, but one needs to run in a 32-bit application pool due to an old library it uses. However, we can't currently do this because there ...
2
votes
0answers
325 views

IIS 301 permanent redirect goes into infinite loop

I would like to replace my old domain (oldsite.com) with (newsite.com) and permanently redirect my users. I have the following in my application web.config file: <rule name="Redirect to new site" ...
2
votes
0answers
347 views

IIS seems to think I have duplicate Custom Headers defined; complains about it

I am a software developer and I debug a website on my local machine in IIS 7.5. Recently I experienced problems with my machine that would not go away, so I backed up, formatted, resintalled Windows ...
2
votes
1answer
306 views

IIS returns 404 when trying to access static files on certain file types

I have a specific file type of .notebook that IIS is blocking. I tried going into request filtering and adding .notebook with allow set to true, but I still get the 404. Anything else in this folder ...
0
votes
2answers
219 views

SetEnvIfNoCase Host: .htaccess to web.config conversion

I have tried IIS Manager and some online conversion tools but I can't figure out how to achieve the following .htaccess rules in a web.config file: SetEnvIfNoCase Host my-domain.com nopassreq ...
0
votes
1answer
304 views

Granular Redirects in IIS and ASP.NET MVC

The marketing people decided that they want us to change the URL of a page. So anything like: http://www.boyscouts.org/NewClubOpening/ http://www.boyscouts.org/NewClubOpening?c=16 ...
1
vote
0answers
797 views

How to encrypt a section within web.config using aspnet_regiis -pe or -pef

I am a developer trying to encrypt part of my web.config file in an ASP.NET site (first time I've tried this...). Having repeated failures with all types of syntax changes, so perhaps better to post ...
2
votes
1answer
824 views

IIS ignoring mime-type settings and serving file as application/octet-stream

We added both handlers and mime-types for IIS in the web.config to tell the server how to handle the different types of audio and video files we are using on the site. IIS does not seem to be ...
5
votes
1answer
3k views

The configSource file 'connections.config' is also used in a parent, this is not allowed.

Question: I face the following situation: A ASP.NET .NET 4.0 web-application deployed on machine "vmsomething". The web-application running on IIS 7.5 resides in d:\webs\myapplication on ...
0
votes
1answer
110 views

Notifying a windows service when there is a change in “web.config” or “applicationHost.config”

I am trying to optimize the no. of file reads made to "web.config" or "applicationHost.config" by my service. I'm planning to do it by reading the requested configuration into the memory if the same ...
2
votes
0answers
138 views

Restrict access to a subdomain with web.config on IIS7?

I need to password protect a "dev" subdomain on a server with the web.config file on IIS7. I don't have access to anything besides the files and web.config, so I can't install modules or anything else ...
1
vote
2answers
2k views

Getting custom web.config sections and their contents in Powershell

I have a web application installed in c:\inetpub\wwwroot_Site1\AppName which has a custom section group and section as follows: <configSections> <sectionGroup name="Libraries"> ...
3
votes
1answer
2k views

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 ...
2
votes
2answers
1k views

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 ...
1
vote
2answers
2k views

Is it possible to set these IIS7 settings in a web.config file?

with my IIS7 site, i manually set the bindings for my site. Is it possible to set these bindings in the (local) web.config file? Not a machine or app config file ... but the web.config file? Cheers ...
0
votes
1answer
717 views

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 ...
2
votes
2answers
1k views

Application Settings outside of web.config

I need to keep the production app settings section outside of Web.config; I don't want keys and other secret information to be kept inside source code repository. However, if I edit the app settings ...
1
vote
0answers
713 views

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 ...
0
votes
1answer
2k views

How to hide subfolder when using Web.config for subdomains?

I have FTP access to my ASP.NET Websapce (IIS 7) and I route subdomains with a Web.config in the web root folder. She looks like this: <?xml version="1.0" encoding="UTF-8"?> ...
0
votes
0answers
132 views

IIS Redirect based on IP address

I need to set up a redirect based on a couple of conditions (I have no experience whatsoever with IIS) The logic is as follows: When visiting the website all traffic except for one particular IP ...
1
vote
1answer
787 views

How to actually set max-age headers on Windows Server?

I've set the max age to 1 minute, but when I look at the response headers, I see max-age=86400 (one day). Is something else overriding this setting? I've also set the kernel cache to 1 minute for ...
6
votes
4answers
34k views

How to configure a Web.Config file to allow custom 404 handling while still displaying on-page 500 error detail?

To customize 404 handling and based on the hosting company's suggestion, we are currently using the following web.config setup. However, we quickly realized that with this configuration, any page ...
1
vote
1answer
977 views

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 ...
0
votes
1answer
50 views

fresh installation of IIS 7.5 ignores <system.web> in my web.config

I have deployed a web application as usual, but on already installed and running Windows Server 2008 R2 with IIS 7.5. On all machines until now the application works fine, but here an entire ...
0
votes
1answer
1k views

IIS and Static content?

Files that the browser retrieves from the server should be stored in the browser’s cache as long as possible to help minimize server round-trips. But how does IIS knows what is actually a ...