Questions tagged [web.config]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
37 views

IIS Output cache doesnt seem to cache static files

I have the configured caching below and Ive also used other scenarios but I cant get my JS files to show in the cache with the below commands. So I dont think they are caching for my .js files. Is ...
1
vote
1answer
27 views

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 <ipSecurity>. However, the (site local) IP restrictions work fine and can be edited through the IIS ...
0
votes
0answers
32 views

IIS web.config redirect to other server xampp

I have a website running in a local server IIS (just ASP & HTML files) that is linked to a domain example.com. I've created a new Wordpress site on another server with XAMPP. Is there any way to ...
0
votes
0answers
112 views

IIS 8.5 Error while performing operation on web.config

I have a test server and a prod server that host a .netcore2.1 website. On the test server, I can access to the website and publish with MSDeploy without any problem. On the prod server I can publish ...
0
votes
0answers
126 views

How Do I Remove a Filename and Exension From a URL in IIS

I'm having trouble getting a rewrite rule to work in IIS 10 with the URL Rewrite 2.1 module. I've tried several things to no avail. My most recent attempt involved using the built-in "User-...
0
votes
1answer
293 views

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

Azure App service - disable showing exceptions/.net versions in HTTP response

I have my .NET app running on Azure app service. When some requests fail, it returns the html page with exception and .net version at the bottom of the page: image I know that I can add tag <...
-1
votes
1answer
140 views

Deploying new version of an application to IIS Application without downtime

I have a small AngularJS web application that runs in kiosks in an intranet network. I've been tasked to make deployments without downtime and in an automated way that can be controlled remotely with ...
0
votes
0answers
24 views

Web.config Routing within Another Folder

I'm new to the world of windows webservers. I'm working on a project where i have one main site "site.com" and then a blog run on that site as well on "site.com/blog/". I'm having ...
0
votes
0answers
131 views

Azure webapp, web.config. Don´t redirect if specific URL

Hay all I´m having a doubt over here and not sure if possible with web.config. I have a web app in azure . Domain foo.bar.com is pointing to this webapp. On the other had I have a CDN as well in azure ...
3
votes
2answers
931 views

IIS Application Initialization isn't running even though all settings are configured

The end goal is to make it so that whenever my app pool is recycled (which should happen whenever I release an update for the site), my site gets visited once to "warm up". Typically the first visit ...
0
votes
0answers
182 views

HTTP Error 500.19 - Internal Server Error Config not found error IIS 7

I am trying to deploy a .net core 3.0 MVC application to a web server via IIS 7 and I am getting the following server error: HTTP Error 500.19 - Internal Server Error Config Source: -1: 0: ...
0
votes
1answer
702 views

How to set the “ASPNETCORE_ENVIRONMENT” environmentVariable in the WEBROOT (web.config) with APPCMD.exe?

How am I able to set the sites web.config "ASPNETCORE_ENVIRONMENT" environmentVariable with APPCMD.exe? So far I've tried ending it using /commit:MACHINE/WEBROOT, /commit:webroot and I get the below: ...
0
votes
1answer
276 views

AWS s3, hide/disable serving the web.config file

Currently we have a site setup in an s3 bucket. This site makes use of a web.config file. However we can navigate to the file via the url: for example, www.mysite.com/web.config will serve the file. ...
4
votes
1answer
1k 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
2k 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 ...
1
vote
0answers
29 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
1k 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 ...
2
votes
0answers
365 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
550 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
320 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
2answers
1k 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
338 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\....
3
votes
2answers
3k 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
91 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 ...
2
votes
1answer
111 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
47 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
25 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
265 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?
1
vote
1answer
1k views

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 ...
2
votes
2answers
80 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
265 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" ...
1
vote
4answers
7k 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
246 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
976 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
889 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
219 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
118 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
68 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
4k 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
2k 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
963 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
5k 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
2k 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
181 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
793 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
3k 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
1k 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
944 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"> <...