A configuration file for ASP.NET web applications in XML format.
Questions tagged [web.config]
116 questions
0
votes
1 answer
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\.php).)*$ {
allow 127.0.0.1
deny…

Leeloo
- 103
- 2
0
votes
1 answer
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 form application that will allow them to view and…

Kevin Denham
- 131
- 1
- 6
0
votes
1 answer
Allowing creation/modification of virtual aliases using web.config
I've been given a problem to fix, and I initially thought of .htaccess files, except for one thing, I quickly realized it's an IIS server. Is it possible to allow a webmaster the ability to modify the virtual directories using web.config files in…
None
0
votes
1 answer
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.config is overwrighted and all changes are loose.
How…

Luiz Gustavo
- 37
- 6
0
votes
1 answer
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

Jesse Adam
- 101
- 3
0
votes
0 answers
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:\website\sso.css.
Running procmon, I noticed that the…

ixe013
- 1,018
- 2
- 10
- 26
0
votes
1 answer
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 same entire directory structure is mounted on both…

the
- 468
- 8
- 23
0
votes
0 answers
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 remove the .php extension, but only in that…

user301299
- 1
- 1
0
votes
0 answers
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 connection, instead of the connection string in…

Jack
- 119
- 4
0
votes
0 answers
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 modifying a registry key as recommended in this post.…

Chris Summers
- 506
- 2
- 11
0
votes
2 answers
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
AuthType Basic
AuthName "Restricted"
AuthUserFile…

superphonic
- 75
- 1
- 11
0
votes
1 answer
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.boyscouts.org/NewClubOpening?c=16&s=invite
Should…

Slinky
- 1,027
- 3
- 15
- 26
0
votes
1 answer
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 configuration is requested again for the same site…
0
votes
1 answer
fresh installation of IIS 7.5 ignores 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 section from my web.config is not used at…

Axarydax
- 121
- 4
0
votes
1 answer
IIS 7 deploy rewrite rules on a website
I have to apply some redirect rules on IIS7/VS2008 and have question on how to deploy it. We have a website and not web application and hence most of other SO questions were not useful to me.
in order to apply rule like below in website:
…

user138897
- 11
- 3