4
votes
prevent IIS from executing scripts in a specific directory
One good and easy way to prevent execution of certain file extensions under an specific folder is to use the "Request filtering" feature of IIS to prevent accessing them altogether.
Go to the folder ...
3
votes
subfolder is not resolved without force typing https
In this case the problem was that port 80 was redirected to 443 in windows firewall settings. I removed the port forwarding and port 80 is now working on all URLs.
Perhaps the main url http://reg....
3
votes
Allow directory listing for subdirectories only
Yes if you allowOverride and then add a new web.config file in the folder you want to disable.
So in your parent folder web.config should look like this.
<configuration>
<location path="....
2
votes
How to move IIS7 site from one server to another
Web Deployment Tool / msdeploy rocks.... if you are staying within same major version of IIS. However, I have seen significant headaches going from 7.x to 8.x.
2
votes
prevent IIS from executing scripts in a specific directory
Assuming that you want the uploaded files to be served as static content (or else you could just save the uploads outside the root folder of your application):
Inside your root web.config (which can'...
2
votes
Accepted
IIS 7.0 HTTP Redirect not rolling back
Check that the redirect hasn't been registered in the "Machine.config" file.
IIS as we all know, puts entries in the local web.config for the application in question, however occasionally it put's ...
2
votes
Accepted
CDN SSL Sertificate - Two web sites on IIS 7.0 - Port 443 Issue
IIS 7.0 isn't able to handle it. Including the host name in the SSL handshake is a relatively new innovation. It wasn't so long ago that you had to have a dedicated IP address for each host name for ...
2
votes
Accepted
Prevent Imperva CDN from showing origin IP info when we stop web site on IIS
Keeping your server up 100% of the time to prevent Imperva from showing that error page isn't realistic. If you don't want that information shown, you need to change the page shown by the CDN. Here ...
2
votes
How would you implement redirects for domain canonicalization, no-www, and HTTPS for IIS 7.5
Assuming you're using the URL Rewrite Module, you can use the following set of rewrite rules in the web.config:
<system.webServer>
<rewrite>
<rules>
<rule name="...
1
vote
Accepted
IIS7 rewrite rule triggers 404 rather than redirecting to new pagw
<match url="*example.com/default.htm" ignoreCase="true" />
I think the url attribute matches against the URL-path only, not the hostname. So the above should read:
<match url="^default\.htm"...
1
vote
In IIS 7.5, how do you redirect an HTTPS domain to the canonical domain?
Hopefully if you're in a similar bind, this will help.
There are a few techniques for redirection. The URL Rewrite module from iis.net is a good recommendation.
My specific issue was that I had ...
1
vote
Accepted
URL rewrite problem on IIS7.5
The issue is that the action is hard coded to use the same filename. You could add some additional conditions and duplicate the rules, but a simpler option would be to change the ...
1
vote
Track Google Analytics from a redirected domain using IIS
You could change your redirected URL to have something like
?redirect
appended to the end of it. It would have no effect on the page, but in GA you could filter those URLs out to get a count.
1
vote
IIS URL Rewrite Wildcards
You want to capture the desired id of the article using a condition, then you want to use that id you captured in the redirect action using {C:2} or Condition variable 2. Note that REQUEST_URI holds ...
1
vote
IIS 7.0 HTTP Redirect not rolling back
Some redirects are cached by the browser (permanent redirect). You may need to clear the browser cache on the client side.
1
vote
What kind of attack causes a JavaScript 'out of memory' on the attackers device?
Depending on what the attacker is doing capturing the requests he is making may or may not give you any useful information. As for what he is trying to do it is unlikely anyone could give you a useful ...
1
vote
Why does my IIS virtual directory serve folders but not files?
If you can, I would highly recommend adding the sc-substatus field to the IIS log. IIS recognizes about 20 different 404 variations that it identifies with the substatus field. Look here for a ...
1
vote
How do I configure IIS 7.5 to allow using a network share as an image src?
Have you considered creating a mapped network drive on the local machine that IIS is on (i.e. \NetworkShare mapped to drive letter "X:") with appropriate permissions and then create a virtual ...
1
vote
http://www.mysite.com/c/v to display different domain:http://www.myothersite.com/c/v
Based on what I can gather from your question you are wanting to serve the same site from both domains, but don't want to be redirecting from one domain to another. In that case what you referring to ...
1
vote
prevent IIS from executing scripts in a specific directory
Add this Web.config to your uploads directory (or even better, to the parent Web.config inside a location path="whatever" tag)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
iis7 × 143url-rewriting × 25
iis × 24
redirects × 21
asp.net × 16
windows-server-2008 × 10
https × 9
dns × 8
seo × 6
php × 5
subdomain × 5
404 × 5
windows × 5
asp.net-mvc × 5
google-analytics × 4
web-hosting × 4
wordpress × 4
url × 4
security × 4
performance × 4
localhost × 4
configuration × 4
htaccess × 3
html × 3
301-redirect × 3