iis-7

handling sub-domains in IIS for a web application

假装没事ソ 提交于 2019-12-25 09:47:10
问题 I am have a web application on local IIS (mylocalsite.com) What settings I need, so that I can handle all subdomains of my local site, like user1.mylocalsite.com user2.mylocalsite.com anything.mylocalsite.com All urls will point to same index page from where I can seperate subdomain and load page accordingly. 回答1: Since your description is not that clear, my initial thought would that you can setup different Bindings in IIS to cater for all the subdomains. In IIS 7, right click your website -

URL Rewrite issues on IIS 7.0 with subdomains, not present on IIS 7.5

◇◆丶佛笑我妖孽 提交于 2019-12-25 08:47:38
问题 i'm building this asp.net application that require couple of subdomains. they will all share the same code base but i have separate .aspx for each subdomain in its own subfolder, as follows: admin.domain.com -> domain.com/admin user.domain.com -> domain.com/user ... everything works great on my dev box (win7, iis 7.5) using the following rewrite rules: <rule name="admin.domain.com" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^admin.domain.com$" />

How can I merge these two web.config files?

♀尐吖头ヾ 提交于 2019-12-25 08:34:33
问题 I have 2 web.config files -- one in my root and one in my /knowledgebase/ directory -- which I have converted to an application in IIS7 . Nevertheless, I still get the: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\Users\Owner\Documents\Visual Studio 2010\WebSites\USS\knowledgebase\web.config 35 My /knowledgebase/ web.config line 35

.NET MVC Access denied when trying to create Directory

╄→尐↘猪︶ㄣ 提交于 2019-12-25 07:26:57
问题 I am trying to create a Directory in .NET using Directory.CreateDirectory , I followed the directions here to give access permission but I am still getting an UnauthorizedAccessException. Does anyone have any advice? Note, this is a web application that uses the IIS7 server. 回答1: In the directory you are attempting to create a new directory, make sure that your app pool user has Read/Write permissions for that directory. You have to specifically do that in addition to adding the user to the

Serving static content from a subdomain in asp.net using URL Rewrite

天大地大妈咪最大 提交于 2019-12-25 05:57:07
问题 Searched for a few hours with no avail so here goes... I have a domain which is receiving quite a few hits per day and have been asked if I can serve the static content from a subdomain. As the site is quite extensive and already written, I was wondering if there is any way I can use URL rewriting to change: www.example.com/image.gif to static.example.com/image.gif I have a solution which works using 301 redirects but from what I understand, this is counter productive as 2 requests will have

System.Web.Routing only working with a .aspx file extension

China☆狼群 提交于 2019-12-25 05:16:11
问题 I have an application, that uses System.Web.Routing and it works great on all my environments. The only issue is, that my staging environment needs the ".aspx" at the end or I will get a 404. All other environments do not require it. They all run in Classic for the Managed Pipeline Mode with v4.0 .NET framework. I keep comparing IIS settings, but I can't find any differences. I've even compared web.config and machine.config , but no differences there either. Anybody know what it could be? 回答1

Shibboleth- Auto Choose from multiple idp based on Url for single SP

霸气de小男生 提交于 2019-12-25 05:13:47
问题 We are using Shibboleth Service provider for our application. We have installed the Sp in our local machine. Now I need to have it configured to multiple idP depending upon the url. Example: We have two hosts one.sample.com and two.sample.com both point to same machine - so same SP. So want to configure Sp in way that when hit one.sample.com then it authenticate user using https://testshib.com/idp and when hit two.sample.com then authenticate user with another idp. It should not ask me to

IIS7 dynamic content compression and webservices

混江龙づ霸主 提交于 2019-12-25 04:54:07
问题 I am moving and old asmx webservice to a new server with IIS7. This webservice basically sends a big dataset (10mb+) to a winform application. The old solution was implemented using a custom soap extension which compressed the content before sending the stream to the client. The client, of course, implemented the same custom soap extension, to decompressed the stream in a dataset. Everything has worked pretty well for years. My customer doesn't want to change the code upgrading to WCF. They

Convert htaccess file to web.config to run Php on IIS 7

五迷三道 提交于 2019-12-25 03:40:11
问题 I need to convert .htaccess to web.config in order to run php on iis 7. Any Ideas? Options +FollowSymLinks +SymLinksIfOwnerMatch RewriteEngine On RewriteBase /test RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php 回答1: The URL Rewriting module's import rules from .htaccess wizard generated the following rules: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="non-existent paths to index.php"

IIS url rewrite rewriting all .asp to .html

半城伤御伤魂 提交于 2019-12-25 02:54:29
问题 I need to create rules for web.config that will rewrite all requests for files with extension .html to .asp and redirect all .asp requests to .html Example: file_xyz.asp rewrites to file_xyz.html directory1/file_xyz.asp rewrites to directory1/file_xyz.html and file_xyz.html redirects to file_xyz.asp directory1/file_xyz.html redirects to directory1/file_xyz.asp What is the syntax for the rule Is this too broad a rule? If I should need for what ever reason to have a physical file such as file