Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [web.config]

The tag has no usage guidance.

4
votes
1answer
128 views

Why can't IIS read Web.config within a folder created by Bash on Windows?

If I use bash (from Ubuntu 18.04 running via Windows Subsystem for Linux) to create a directory under my Windows profile: $ mkdir /mnt/c/Users/mdmower/source/repos/WebBash then IIS 10 is unable to ...
0
votes
1answer
156 views

How to restrict access to a specific file on iis windows 2012

IIS on Windows 2012 R2 A website has a number of directories and in one of those directories is restricted-page.html to which I want to restrict access to all except a particular windows user. The ...
0
votes
0answers
40 views

How to setup web.config and IIS for second and separate FQDN in IIS on same ports

I've got an existing website that is running on 80 and 443 with SSL already. I have a second FQDN that needs to access a different web application. My second application is Seafile. I've followed ...
1
vote
0answers
21 views

redirect specific ip range in IIS [duplicate]

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

IIS starts serving 404's (works for a while!)

This is a funny one that's just started happening. Changes I've recently made: Updated website (not major update, small code changes/bug fixes) Added URL re-write rules to 301 forum to different ...
0
votes
0answers
208 views

IIS maxWorkerThreads strange behavior

I have an IIS Webserver installed on my windows 10 machine and an ASP.Net Webforms application running. I tried to increase the following values in my machine.config: <processModel autoConfig="...
1
vote
0answers
73 views

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 ...
1
vote
1answer
190 views

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

Shared Configuration and AppSettings

We use Shared Configuration for our IIS config, so the same config is used by the webservers. This works well. We like to share some server-level <AppSettings> between the servers. (in IIS ...
0
votes
0answers
70 views

Setting up nginx proxy so that different paths communicate with different ports

Before I begin, I want to say that this is the first time I've ever attempted this type of server setup. I'm trying to run multiple instances of a program behind different pages of a website. For ...
0
votes
2answers
533 views

HTTP Error 500.19 - Internal Server Error physical path missing

I am a newbie trying to publish a asp site onto a webserver, however I am getting error message stating HTTP Error 500.19 - Internal Server Error - Click here for error image . I figured it has to do ...
0
votes
1answer
98 views

nginx, Limit all .php except index.php, allow POST

I'm trying to limit access to .php files through HTTP, allow only to index.php. I should allow access to .php files only through POST and require. I did the following: location ~ ^((?!index\....
4
votes
2answers
792 views

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, ...
1
vote
0answers
54 views

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 ...
3
votes
1answer
62 views

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

Is it ill-advised to make a web app that modifies web.config?

Our organization gets a lot of ticket requests from the Marketing department to create friendly URLs for our production public facing sites. I'm considering creating a simple internal ASP.NET web ...
2
votes
0answers
24 views

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 ...
1
vote
0answers
213 views

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?
0
votes
0answers
519 views

Rewrite URL from HTTP to HTTPS in IIS for specific domains

I need to make a global rule that rewrites all http://foo.doublefoo.bar/ to https://foo.doublefoo.bar/. I host multiple domains and my attempts either don't work or work on all domains. I put this ...
3
votes
2answers
51 views

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

IIS https to https

I am trying to use IIS rewrite module to redirect https to another https. This is what i have tried: test 1: <rewrite> <rules> <rule name="Redirect Maps Rule" ...
0
votes
3answers
2k views

Enabling Brotli compression on IIS

My team us currently trying to install Brotli compression on a VPS: Windows Server 2012 R2 with IIS8.5 using the 64bit module that can be downloaded here: https://www.iispeed.com/pagespeed/products/...
2
votes
0answers
186 views

ASP.NET application impersonate user with netonly to access network share

We have an ASP.NET application running on Server A which is on its own domain, in the web.config we are impersonating a user. Now this application needs to access a folder on Server B which is on a ...
0
votes
1answer
556 views

IIS Manager changes are saved to USER web.config instead APPLICATIONHOST.CONFIG

I face a problem when changing setting using IIS MANAGER in Windows 2012 R2. All changes made are stored in web.config user file, and this is a problem, beacuse when user update the App, the web....
0
votes
1answer
472 views

Server 2012 URL Rewrite Module 2 always has 404

URL rewrite was working perfectly on Windows Server 2008, but I'm getting 404 errors when using the same configuration on Server 2012 <rewrite> <outboundRules> <...
2
votes
1answer
164 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 ...
1
vote
0answers
81 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
53 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 D:\...
2
votes
1answer
2k 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
1answer
1k 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 ...
0
votes
0answers
695 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 ...
2
votes
1answer
4k 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
1k 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
1k 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 ...
1
vote
1answer
133 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/ -> ...
0
votes
0answers
567 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 ...
2
votes
1answer
2k 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
927 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" ...
3
votes
1answer
662 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"> <...
2
votes
1answer
1k 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
1k 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
371 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
637 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 http://www....
0
votes
1answer
162 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 ...
4
votes
1answer
489 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 ...
0
votes
1answer
5k 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 ...
3
votes
1answer
4k 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
1answer
2k 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 ...
3
votes
2answers
2k 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 ...
3
votes
1answer
695 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 (...