Hot answers tagged

4

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 in IIS and in the "File Name Extensions" tab of the "Request filtering" feature, add "Deny file extension" rules for the file extensions that you want to lock. ...


4

No. I run several sites like this. The binding determines which app takes the requests, and each app can only have one app pool. An app pool can use multiple processes (a web garden) but that is completely unrelated to wildcard domain names (even a single domain gets split across multiple processes in this scenario). An app domain (a security construct ...


3

The problem you're having is solved with CORS: The Cross-Origin Resource Sharing standard works by adding new HTTP headers that allow servers to describe the set of origins that are permitted to read that information using a web browser. Additionally, for HTTP request methods that can cause side-effects on user data (in particular, for HTTP ...


3

It is not the perceived depth of directory that google factors into rankings, urls with so called deep directories can be indexed and ranked just as shorter ones can. http://www.searchenginejournal.com/url-structure-seo/11801/ Though Google does recommend you keep urls as simple as possible. https://support.google.com/webmasters/answer/76329?hl=en


3

I've been able to reset a lot of my site's values using appcmd, but I had to dig into specific configurations I wanted to change, which I'll describe a bit below. I know for sure that this works with IIS 7, but I'm not 100% certain whether it passed on to 7.5 so YMMV. appcmd isn't in my cmd path on any of my installations (though these machines are 2k8sp2) -...


3

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="." allowOverride="True"> <system.webServer> <directoryBrowse enabled="True" /> </system.webServer> </location>...


3

If all you are doing is moving the files on your file system to another location but want to keep the same URL structure, rather than setting up URL Rewrite rules you can change the physical path of your IIS website configuration. I will make the following assumptions: You are running website "mydomain.edu" from a physical location such as C:\inetpub\...


3

Yes, it will. The http and https version will be seen as individual pages and thus also create duplicate content. The solution is to use a 301-permanent redirect, which your code does. This will transfer the juice to the destination of the redirection, so you're good. Also, adding a canonical tag to indicate which is the prefered url is good practice. ...


3

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.example.com was working from cache, not sure....


2

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't be overwritten by users), use this (as suggested by Javier G., but with allowOverride=false): <location path="upload" allowOverride="false"> <...


2

You need to create an A record for sqldb1234.db in your DNS area for GoDaddy. http://support.godaddy.com/help/article/2290/how-do-i-create-a-subdomain-in-simple-control-panel Once the A record has propagated you should be able to use the subdomain sqldb1234.db.mydomain.com in your connection string.


2

GoDaddy has a help page about web application trust level. It says that with ASP 4, you should be able to enable "full trust" with this directive in your Web.Config file: <configuration> <system.web> <trust level="Full" /> </system.web> </configuration>


2

Yes. Just create a new application with the desired sub path under the main site. The new application can be run under a separate application pool. Note that there may be fixes you need to make to the second application, because it is running with a sub path. If it generates any absolute URLs or server-relative URLs, they must be generated with that in ...


2

The design pattern you are using is called the "front controller" -- a central entry point for handling requests. Here is a website that shows how to implement that pattern with various webservers. Here is the configuration they recommend for IIS in the web.config file: <?xml version="1.0"?> <configuration> <system.webServer> ...


2

The solution that we found to be the most simple and effective was a simple CSS and template hack. We are using our own custom template so modifying it was not a problem. In short, I hid the Edit bar and any other content manager features using a CSS file that only loads when on the main website (www.example.com), and provided a message on those pages for ...


2

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

Is the SEO specialist right? Yes and no (or more appropriately, debateable). That said, the closer you are to the root domain (in your example example.com) the better. The lower down in the path you are, the less prominence Google will give to your page. So in your example: www.example.com/products/page_name/123 Is definitely the preferred way to do it, ...


2

You need to set maxAllowedContentLength, not maxRequestLength to up the allowed upload size for IIS. the former is the IIS request length limit, the latter is the ASP.NET request length limit. Also important to know is that maxAllowedContentLength is the length in bytes, whereas maxRequestLength is the length in kilobytes. See this question on SO for more ...


2

Missing a backslash \ after the last folder. Requested URL has a folder in it. entitialviridordahsboard Are you looking to goto d:\inetpub\webmail\entitialviridordahsboard\entitialviridordahsboard ??? Error is from the Map Request Handler Change image 4 forward from /entitalvirtidordashbord to 109.108.142.135 /entitalvirtidordashbord: 109.108.142.135


2

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 entries in the machine wide "machine.config" Furthermore many .NET devs don't even realize there is a "machine.config" file As the name implies, any settings in ...


2

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="ForceToExample.com" stopProcessing="true"> <!-- Match any path --> <match url="(.*)" /> <conditions> <!-- ...


1

Depends on what settings are being used. On other versions of IIS, there's an option called "Edit Feature Settings", which allows you to switch between "Allow All" or "Deny All".


1

Open up IIS manager. Click on your site on the left hand side. On the right hand side double click Request Filtering. Now under the File Name and Extension tabs, make sure the extension of the page you are trying to allow is allowed (set to true). So if you are trying to serve a .py page then .py extension needs to be true. Browse through the ...


1

Each website on iis7 will have its own Web.Config file. That is usually all you need to deploy a site to a live server, with the catch that these files can be setup for development use (show errors, etc). If you use a professional build tool, or deployment tool then you can have two web.configs one for deployment and one for coding. But most of the time ...


1

I finally found the solution to this problem. When setting up the site I had done everything but put the site in the bindings for the domain. I hadn't added the subdomain.mysite.com to the bindings for port 80. I had forgotten this because since I was forcing everything through port 443 with a rewrite, I didn't think I needed to add it. In digging around ...


1

First Method : Install web platform installer from: http://www.iis.net/downloads Find the urlrewrite and add to IIS, then you can find URL rewrite section in IIS. You can create a new rule or import from .htaccess file via URL rewrite. Second and Easy Method : Open IIS and select related website Go to errors section and find 404 error. Double click on ...


1

Here you go.... this should work: <rule name="IE8FacePalm" stopProcessing="true"> <match url="\" ignoreCase="true" /> <conditions logicalGrouping="MatchAny" trackAllCaptures="false"> <add input="{HTTP_USER_AGENT}" pattern="MSIE 8.0" /> </conditions> <action type="Redirect" url="http://x.com/a-url" ...


1

When I do testing with security certificates, I often use the real certificate on the test machine. I configure the test machine with the real host name. Then I use my /etc/hosts (or hosts.txt) file to point the real domain name to the test box for testing a client. Doing this bypasses the need for generating certificates and making sure that all test ...


1

This topic can be quiet debatable as stated. However, there are 2 general rules. make the url simple understandable and relevant i.e site.com/shop/pens is much better then site.com/this/shop/sells/pens?id=123123123 make the step to get to the desired location as short as possible If you follow these two rules then regardless of if your url is "optimised" ...


1

It worked for me with these settings Moved the complete DokuWiki installation on other machine Now IIS on HPV-SHSDEV1-01 points to DokuWiki installation at this location \co-lp-vmpfile2\SH_custom_applications\SH_Systems\DEV01\dokuwiki\dokuwiki Changed anonymous user's indentity to App pools identity Used UNC path instead of mapped drive path to locate ...


Only top voted, non community-wiki answers of a minimum length are eligible