Quantcast
Channel: All Forums
Viewing all 28504 articles
Browse latest View live

Possible to Install IIS 32-bit on Windows 7 64-bit

$
0
0

I was wondering if it is possible to install IIS 32-bit on a Windows 7 64-bit machine.  I have an application that runs perfectly on IIS on Win7 32-bit.  It doesn't run on Win7 64-bit even though I have enabled 32-bit apps on the AppPool.  It does run on IIS Express 32-bit on Win7 64-bit.  I was thinking of trying this if it is possible.


How to grant IIS full permissions to a windows user who is not a local admin

$
0
0

How to grant IIS full permissions to a windows user who is not a local admin on the 2008 r2 std server with IIS7?  This person is an application and website admin for a site on the server, but should not have local full admin access on the server.  They do have domain credentials which I would like to provide the IIS full admin permissions to.  How can I accomplish this?  I did look at the following article in the link below but I don't see it talking about how to grant full IIS administration permissions.

http://www.iis.net/learn/manage/remote-administration/configuring-remote-administration-and-feature-delegation-in-iis-7

Thank you.

Many php-cgi.exe processes

$
0
0

Hello.

Since a day or 2, my webserver running Windows Server 2012 R2 with IIS 8.5 spawns a large amount of php-cgi.exe processes.
The PHP version is 5.6.3 and has been updated since its release on windows.php.net and working great, until ~2 days ago.

Where it used to spawn about 5~6 of these processes before, it now opens 200+ sometimes and makes my opening a webpage on my server slow and sometimes even blocking access to RDP.
When using ''iisreset /restart'', the processes disappear, but not for long, it graduatly builds up again.

Not always will the webserver respond slow.
I have the settings at the default settings in the FastCGI Settings.
0 Max Instances, and 10000 of Instance Max. Requests (10000 for recycle also)

But interestingly these settings haven't been changed at all. They were the same before the problem started happening.
I have tried to lower the Instance Max. Requests and increasing the Max. Instances (but resulted in that the website sometimes stops responding at all, not even an HTTP error but just a time-out).


It isn't the PHP version itself, since I have installed via backup 5.5 and 5.4, and with them it also happens.

Is there some other settings that is causing it?
I don't want to do a iisreset /restart every 6 hours or so (have scheduled it for 01:00 each day) or reinstall the machine, since it means my website is offline for at least a day.

Could anyone help me?
If you need further information, please tell what you need.

Deploying IIS8 Site to IIS7--Error Message

$
0
0

I'm trying to deploy a site running on IIS 8 to a server running 2008 R2 and IIS 7 using Web Deploy v3.  The import keeps dying with this error:

"Child object 'customAuthorization' cannot be added to object 'security'.  The 'security' provider may not support this deployment."  

I've run dependency checks on the IIS 8 server and I have all the prerequisites roles and features installed on the destination server.  I've even tried modifying the configsettings file but web deploy won't recognize the new rule.  

Please help.

CSS broken until AppPool Recyle

$
0
0

Hello, wondering if any of you came across this issue and how you resolved it. Randomly the site becomes slow and loses the "css". The application looks funny and you cannot continue to use it. The way we solve it is by reseting the application pool.  This happens mostly during morning hours, it does not happen during peak usage hours.

Any ideas?

.net 3.5, Integrated (same issue in classic)

iis 8.5 (same issue in 7 and 7.5)

OS W2012 R2(same issue in W2008R2).

3rd party control: ComponentArts Web UI

Microsoft NLB (3 servers)

The memory and CPU does not vary during the issue

Any ideas would help

msdeploy slow to copy large files between two remote servers

$
0
0

We run msdeploy on a "deployment" server that copies web site code between different environments (development, test, production).  When we execute a msdeploy command, it will run a -verb:sync between to different servers (serverA and serverB).

The command we run looks like this:

msdeploy -verb:sync
-source:manifest=c:\manifest.xml,computername=http://serverA/WebDeploy/
-dest:manifest=c:\manifest.xml,computername=http://serverB/WebDeploy/ 

The manifest file looks like this:

<Manifest>
    <dirpath path="C:\content" />
</Manifest>

Since we've updated our deployment server to windows 2008, migrations that move large files take a very long time.

For example, moving a 300mb file in the following scenarios:

execute msdeploy.exe on serverA to push local content to serverB - 10 seconds
execute msdeploy.exe on deployment server to push local content to serverB - 1 minute
execute msdeploy.exe on deploymnet server to sync content on serverA to serverB - 7 minutes

Is there anything I can do to decrease the amount of time it takes to independently sync two remote servers from a deployment server?

Set 301 redirects

$
0
0
I have a site hosted on Windows server 2008 R2. I need to set 301 diverts to another site. The problem I have is there are about a few hundred pages that need to be set up with a divert. So far the format of my site and the new site URLs is

Http://mysite.com/shop/products/product.aspx?id=1
Http://newsite.com/merchandise/product.aspx

Is there a quick way to set the diverts? Could I use any wild cards or would I have to do each URL seriously? I would appreciate any examples if there is a quick way to achieve this.
Thanks

How to redirect https to https url using url rewrite module 2.0 on IIS7.x

$
0
0

Hi all,

I have a site runs on http protocol and few url's need to run on https protocol and it is running properly but I need to make url SEO friendly so can anyone give me idea of rewrite rule using rewrite module 2.0 on IIS7.x below is my scenario..

https://www.xyz.com/dir1/3223-mkr/index.html#1 should be redirect to https://www.xyz.com/dir1/viewcode.aspx?id=11

and I have already installed SSL on site.

Please help me to write rule


WebDeploy does not work because of .net versions

$
0
0

Dear all,

I get following message, when I try to migrate my server from Win2008R2 to Win2012R2 while importing the zip file in the IIS manager

[Window Title]
Import Server or Site Package

[Main Instruction]
An error occurred when performing this operation.
    
Details:    
The versions of the .NET Framework Configuration Provider (machineConfig64) are different on the source (2.0) and destination (4.0).  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH.


[Expanded Information]
Microsoft.Web.Deployment.DeploymentDetailedException: The versions of the .NET Framework Configuration Provider (machineConfig64) are different on the source (2.0) and destination (4.0).  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH.
   at Microsoft.Web.Deployment.FrameworkMismatchRuleHandler.ThrowIfSourceAndDestVersionsDontMatch(DeploymentObject source, Version sourceVersion, Version destVersion)
   at Microsoft.Web.Deployment.FrameworkMismatchRuleHandler.ThrowIfSourceAndDestinationAttributeDontMatch(DeploymentObject source, DeploymentObject destination, String attributeName)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleUpdate(DeploymentObject destObject, DeploymentObject sourceObject)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObject sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
   at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable`1 syncPassId, String syncSessionId)
   at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
   at Microsoft.Web.Deployment.UI.InstallProgressWizardPage.OnWorkerDoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

[V] See details  [OK]

I already added .net 3.5 (including 2+3) to my server and changed the config file as described here, but it did not help.

Thank you all in advance

Disable default website from IIS 7.0

$
0
0

Hi, We have ADFS server which is in DMZ & default IIS splash page is accesible externally.

I would like to disable default IIS splash page, which means disabling default website. but my ADFS site also running under default website.

My understanding that, i need to move the site to new app pool. correct me if i am wrong.

my question is without moving the ADFS site from default website is there anyway, i can block IIS splash page? My IIS version is 7.0.

Let me know if more information required.

 

Thanks!

Karki

Mode Proxy for Dynamic IP Restriction

$
0
0

Hello all,

I got one server in 2008 R2 with IIS7.5 behind a loadbalancer.

I want to allow access to one of my site to a certain list of IP addresses.

I have configure the IP and domain restriction to deny access to the non members of the list and set my allowed IP.

I have installed the Dynamic IP restriction module and activate mode proxy.

In my logs I can see that requests have the X-Forwarded-for with the public IP source. 

The fact is that I still have a 403 when I want to access to my website (even if my IP public is in the X-Forwarded-For and in the IP allowed).

If I allow the IP of my loadbalancer, every request is allowed and everyone can access the site. (even the IP not listed)

It seems like the mode proxy is not enable (but it is in my applicationHost.conf, and I test to add it in my web.conf but it still the same).

If I disable the basic IP and domains restrictions, all IP are allowed (even if i had <ipSecurity allowUnlisted="false"> in my web.conf or ApplicationHost.conf).

Is there a sort of priority beetween the 2 modules ? Is someone already have this problem ?

Thanks for your help and sorry for my english.

Regards

SQL 2012 clustered on Windows 2012 Failover Cluster

$
0
0

I am currently running 2 Windows 2012 std servers configured as a WFOC.  Within the cluster we have installed SQL 2012 and for the storage we have used volumes presented from our NetApp SAN.  I am currently in the process of replacing the SAN with a new SAN and need to move the SQL data etc to the new volumes but for ease try and maintain the existing drive letters so that i don't have to change too much SQL configuration.  Is this the correct approach or should i be looking at this differently?

Random web servers seeing blasts of 10,000+ connections

$
0
0

We've been seeing this issue for the better part of a year. I'll preface this by saying that we are unable to upgrade these servers to 2012 at this time, but any patches/hotfixes that may resolve the issue are no problem to apply.

The environment:

  • hundreds of Windows 2003 Server - Enterprise Edition - SP2 - 32-bit servers
  • running ASP.NET applications, but NOT in a web farm
  • the applications on the servers are essentially identical, with the exception of the SQL databases that applications get sent to
  • .NET Version is 4.0.30319
  • traffic is routed to these servers via an F5 device

The issue:

Throughout each day, we see random servers show up in our monitoring for both high web service connections, and then, in turn, high CPU. Connections will typically hit over 10,000 and eventually the server will simply stop working. Sometimes the application pool will crash. Sometimes 503's.

Each customer assigned to a particular server has their own virtual directory. There are 50 virtual directories on each server, each labeled with a number. The application in each directory is the same, except for some customer-specific nodes in the web.config. When this issue occurs, we will see a particular page get hammered in one of the 50 virtual directories. Typically, it's the login.aspx, but sometimes it's other pages. As a temporary solution, we'll quickly analyze the weblogs, find the virtual directory of the page getting hammered, move it to its own application pool and then stop the application pool. This essentially stops 1 customer from accessing their site, but saves the other 49.

Starting it back up a few minutes later may be fine, but sometimes starting it back up will have us see the connections come right back to the level they were at. We've turned off a customer as long as an hour or two in the past.

The applications are used by schools, so the bulk of the traffic happens during the daytime hours. However, in the middle of the night, where there is essentially a handful of connections by teachers who might be working late, we also see this issue. It's almost as if there is something stuck on the client end.

We've been down the road of it being a deliberate attack, which is not the case. This is happening randomly across hundreds of servers, affecting customers across the entire US. It's not a single source.

We are seeing a lot of this event:

Event Type: Information Event Source: ASP.NET 4.0.30319.0 Event Category: Web Event Event ID: 1315 Date:  12/18/2014 Time:  12:09:53 AM User:  N/A Computer: RP244H Description: Event code: 4005 Event message: Forms authentication failed for the request. Reason: The ticket supplied has expired. Event time: 12/18/2014 12:09:53 AM Event time (UTC): 12/18/2014 6:09:53 AM Event ID: 80fc4dde6b324cd1978ffe07fe18a964 Event sequence: 37634 Event occurrence: 15297 Event detail code: 50202   Application information:    Application domain: /LM/w3svc/2/Root/209387-1-130633542417692763     Trust level: Full     Application Virtual Path: /209387     Application Path: C:\Renaissance\Hosted244\209387\     Machine name: RP244H   Process information:     Process ID: 7696     Process name: w3wp.exe     Account name: NT AUTHORITY\NETWORK SERVICE   Request information:     Request URL: http://rpinternal.renlearn.com/209387/public/rpm/login/Login.aspx?srcID=s    Request path: /209387/public/rpm/login/Login.aspx     User host address: 172.18.253.112     User:      Is authenticated: False     Authentication Type:      Thread account name: NT AUTHORITY\NETWORK SERVICE   Name to authenticate:    Custom event details:

When looking at the weblogs, you can see that page being hit over and over again.

Has anyone come across anything like this?

 

 

How to duplicate sites , under different names in same IIS Server

$
0
0

Looking for best practice 

Have several sites under Default Site , need to have same sites under different name .

Thanks in advance !

Load-balance multiple website on same servers

$
0
0

Hi,

Need help with one issues.

I have a intranet website which is load balanced  and has SSL installed on f5

website 1

name - site1
link -    https://site1  ( load balanced on two servers   server1 & server 2 )
Default  port 80 & SSL port 443 is bound to site 1

Now we have a new website which will be hosted on same set of two servers ( server1 & server 2 ) on a different port

website 2

name site2
link -    http://site2:1000

  • Is there a way to load-balance the second site on the same set of servers?
  • Can the second website be made a secure SSL site when load-balanced on these servers

Thanks


Certificate Expired on IIS 7.5 and ARR Servers: New Certificate Does Not Work

$
0
0

This is in our development environment routing server, single web server, no reverse proxy. The certificate (self-signed by the ARR server) expired. I deleted the old certificate and generated a new one. I have installed it on both the ARR server and the IIS webserver through IIS Manager / Server Certificates. However, when I try using HTTPS I get a 502.3 error with an error code of 2147954575 from the ARR module. I don't find any errors on the web server. Failed request tracing is enabled for both servers. Also tracing the TLS Frames:

  Frame: Number = 1456, Captured Frame Length = 250, MediaType = NetEvent+ NetEvent: + MicrosoftWindowsNDISPacketCapture: Packet Fragment (149 (0x95) bytes)+ Ethernet: Etype = Internet IP (IPv4),DestinationAddress:[00-0C-29-68-01-37],SourceAddress:[00-0C-29-B8-A8-CB]+ Ipv4: Src = 192.168.12.33, Dest = 192.168.12.35, Next Protocol = TCP, Packet ID = 13558, Total IP Length = 135+ Tcp:  [Bad CheckSum]Flags=...AP..., SrcPort=57665, DstPort=HTTPS(443), PayloadLen=95, Seq=2766570175 - 2766570270, Ack=472739393, Win=256 (scale factor 0x8) = 65536
  TLSSSLData: Transport Layer Security (TLS) Payload Data
- TLS: TLS Rec Layer-1 HandShake: Client Hello.
  - TlsRecordLayer: TLS Rec Layer-1 HandShake:
     ContentType: HandShake:
   - Version: TLS 1.0
      Major: 3 (0x3)
      Minor: 1 (0x1)
     Length: 90 (0x5A)
   - SSLHandshake: SSL HandShake ClientHello(0x01)
      HandShakeType: ClientHello(0x01)
      Length: 86 (0x56)
    - ClientHello: TLS 1.0+ Version: TLS 1.0+ RandomBytes: 
       SessionIDLength: 0 (0x0)
       CipherSuitesLength: 24+ TLSCipherSuites: TLS_RSA_WITH_AES_128_CBC_SHA            { 0x00, 0x2F }+ TLSCipherSuites: TLS_RSA_WITH_AES_256_CBC_SHA            { 0x00, 0x35 }+ TLSCipherSuites: TLS_RSA_WITH_RC4_128_SHA                { 0x00,0x05 }+ TLSCipherSuites: TLS_RSA_WITH_3DES_EDE_CBC_SHA           { 0x00,0x0A }+ TLSCipherSuites: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA      { 0xC0,0x13 }+ TLSCipherSuites: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA      { 0xC0,0x14 }+ TLSCipherSuites: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA    { 0xC0,0x09 }+ TLSCipherSuites: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA    { 0xC0,0x0A }+ TLSCipherSuites: TLS_DHE_DSS_WITH_AES_128_CBC_SHA        { 0x00, 0x32 }+ TLSCipherSuites: TLS_DHE_DSS_WITH_AES_256_CBC_SHA        { 0x00, 0x38 }+ TLSCipherSuites: TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA        { 0x00,0x13 }+ TLSCipherSuites: TLS_RSA_WITH_RC4_128_MD5                { 0x00,0x04 }
       CompressionMethodsLength: 1 (0x1)
       CompressionMethods: 0 (0x0)
       ExtensionsLength: 21 (0x15)+ ClientHelloExtension: Renegotiation Info(0xFF01)+ ClientHelloExtension: Elliptic Curves(0x000A)+ ClientHelloExtension: EC Point Formats(0x000B)
  Frame: Number = 1470, Captured Frame Length = 1023, MediaType = NetEvent+ NetEvent: + MicrosoftWindowsNDISPacketCapture: Packet Fragment (922 (0x39A) bytes)+ Ethernet: Etype = Internet IP (IPv4),DestinationAddress:[00-0C-29-B8-A8-CB],SourceAddress:[00-0C-29-68-01-37]+ Ipv4: Src = 192.168.12.35, Dest = 192.168.12.33, Next Protocol = TCP, Packet ID = 14274, Total IP Length = 908+ Tcp: Flags=...AP..., SrcPort=HTTPS(443), DstPort=57665, PayloadLen=868, Seq=472739393 - 472740261, Ack=2766570270, Win=256 (scale factor 0x8) = 65536
  TLSSSLData: Transport Layer Security (TLS) Payload Data
- TLS: TLS Rec Layer-1 HandShake: Server Hello. Certificate. Server Hello Done.
  - TlsRecordLayer: TLS Rec Layer-1 HandShake:
     ContentType: HandShake:
   - Version: TLS 1.0
      Major: 3 (0x3)
      Minor: 1 (0x1)
     Length: 863 (0x35F)
   - SSLHandshake: SSL HandShake Server Hello Done(0x0E)
      HandShakeType: ServerHello(0x02)
      Length: 77 (0x4D)+ ServerHello: 0x1
      HandShakeType: Certificate(0x0B)
      Length: 774 (0x306)+ Cert: 0x1
      HandShakeType: Server Hello Done(0x0E)
      Length: 0 (0x0)
  Frame: Number = 1489, Captured Frame Length = 481, MediaType = NetEvent+ NetEvent: + MicrosoftWindowsNDISPacketCapture: Packet Fragment (380 (0x17C) bytes)+ Ethernet: Etype = Internet IP (IPv4),DestinationAddress:[00-0C-29-68-01-37],SourceAddress:[00-0C-29-B8-A8-CB]+ Ipv4: Src = 192.168.12.33, Dest = 192.168.12.35, Next Protocol = TCP, Packet ID = 13559, Total IP Length = 366+ Tcp:  [Bad CheckSum]Flags=...AP..., SrcPort=57665, DstPort=HTTPS(443), PayloadLen=326, Seq=2766570270 - 2766570596, Ack=472740261, Win=253 (scale factor 0x8) = 64768
  TLSSSLData: Transport Layer Security (TLS) Payload Data
- TLS: TLS Rec Layer-1 HandShake: Client Key Exchange.; TLS Rec Layer-2 Cipher Change Spec; TLS Rec Layer-3 HandShake: Encrypted Handshake Message.
  - TlsRecordLayer: TLS Rec Layer-1 HandShake:
     ContentType: HandShake:
   - Version: TLS 1.0
      Major: 3 (0x3)
      Minor: 1 (0x1)
     Length: 262 (0x106)
   - SSLHandshake: SSL HandShake Client Key Exchange(0x10)
      HandShakeType: Client Key Exchange(0x10)
      Length: 258 (0x102)
      ClientKeyExchange: Binary Large Object (258 Bytes)
  - TlsRecordLayer: TLS Rec Layer-2 Cipher Change Spec
     ContentType: Cipher Change Spec
   - Version: TLS 1.0
      Major: 3 (0x3)
      Minor: 1 (0x1)
     Length: 1 (0x1)+ ChangeCipherSpec: 0x1
  - TlsRecordLayer: TLS Rec Layer-3 HandShake:
     ContentType: HandShake:
   - Version: TLS 1.0
      Major: 3 (0x3)
      Minor: 1 (0x1)
     Length: 48 (0x30)
   - SSLHandshake: SSL HandShake Client Key Exchange(0x10)
      EncryptedHandshakeMessage: Binary Large Object (48 Bytes)
  Frame: Number = 1503, Captured Frame Length = 214, MediaType = NetEvent+ NetEvent: + MicrosoftWindowsNDISPacketCapture: Packet Fragment (113 (0x71) bytes)+ Ethernet: Etype = Internet IP (IPv4),DestinationAddress:[00-0C-29-B8-A8-CB],SourceAddress:[00-0C-29-68-01-37]+ Ipv4: Src = 192.168.12.35, Dest = 192.168.12.33, Next Protocol = TCP, Packet ID = 14275, Total IP Length = 99+ Tcp: Flags=...AP..., SrcPort=HTTPS(443), DstPort=57665, PayloadLen=59, Seq=472740261 - 472740320, Ack=2766570596, Win=255 (scale factor 0x8) = 65280
  TLSSSLData: Transport Layer Security (TLS) Payload Data
- TLS: TLS Rec Layer-1 Cipher Change Spec; TLS Rec Layer-2 HandShake: Encrypted Handshake Message.
  - TlsRecordLayer: TLS Rec Layer-1 Cipher Change Spec
     ContentType: Cipher Change Spec
   - Version: TLS 1.0
      Major: 3 (0x3)
      Minor: 1 (0x1)
     Length: 1 (0x1)+ ChangeCipherSpec: 0x1
  - TlsRecordLayer: TLS Rec Layer-2 HandShake:
     ContentType: HandShake:
   - Version: TLS 1.0
      Major: 3 (0x3)
      Minor: 1 (0x1)
     Length: 48 (0x30)
   - SSLHandshake: SSL HandShake 
      EncryptedHandshakeMessage: Binary Large Object (48 Bytes)

Then I get TCP packets being sent to the web server with bad checksums.

  Frame: Number = 1522, Captured Frame Length = 155, MediaType = NetEvent+ NetEvent: + MicrosoftWindowsNDISPacketCapture: Packet Fragment (54 (0x36) bytes)+ Ethernet: Etype = Internet IP (IPv4),DestinationAddress:[00-0C-29-68-01-37],SourceAddress:[00-0C-29-B8-A8-CB]+ Ipv4: Src = 192.168.12.33, Dest = 192.168.12.35, Next Protocol = TCP, Packet ID = 13560, Total IP Length = 40+ Tcp:  [Bad CheckSum]Flags=...A...F, SrcPort=57665, DstPort=HTTPS(443), PayloadLen=0, Seq=2766570596, Ack=472740320, Win=253 (scale factor 0x8) = 64768

This was working prior to the certificate expiring and I probably just need to install the new certificate somewhere else on the web server, but so far Google has not turned up anything useful. Thanks for your help in advance.

Processing Order of ISAPI Filters and HTTP Modules

$
0
0

I was hoping someone could explain how ISAPI filters and HTTP modules are processed when both are configured on an IIS server, or point me towards relevant documentation. I've had a hard time finding anything that covers the interaction of both of these features.

My specific use case is that we have an ISAPI filter that redirects web requests when the user isn't authenticated, which causes us to lose the request's POST parameters. What we want to do is write an HTTP module that can handle the request before the ISAPI filter and persist those POST parameters before passing the request down the pipeline. Even though the HTTP module is handling the BeginRequest event, it seems like the ISAPI filter gets first crack at the request and redirects it before the module sees it.

Is this something we can configure in IIS to ensure the HTTP module will be able to process the request before the ISAPI filter?

IIS 8 Splash Page for Stopped Site

$
0
0

Hi everyone,

If I stopped a site in IIS 8, I am getting the IIS 8 splash page. I would prefer to get an error page so that my load balancer receives something other than a 200 OK if the site is stopped.

I am trying to find out why it is configured to show the IIS 8 Splash page for stopped sites, when I would prefer the site throw an error of some sort.


Any help would be appreciated.
Thanks,

Fernando

Looking for script to install multiple appool's multiple sites and content folders

$
0
0

have lot of stuff in around 

can't fine something which can pick appools  sites under default websites  , website names and folder names and content within one script .

any one came across ?

Thanks !

IIS Rewrite Module Cache

$
0
0

Hi,

I want to validate a query string using Custom DB Provider. This query string will vary for each request. But the out put from Custom Provider is cached. I could see the same out put until I do IISReset. Below is the code base I am using.

public class SessionValidator : IRewriteProvider, IProviderDescriptor
{
string sessionID;

private IRewriteContext rewriteContext;
public void Initialize(IDictionary<string, string> settings, IRewriteContext rewriteContext)
{
this.rewriteContext = rewriteContext;
if (!settings.TryGetValue("SessionID", out sessionID) || string.IsNullOrEmpty(sessionID))
throw new ArgumentException("Session ID cannot be empty");
this.rewriteContext.RewriteCacheEnabled = false;
this.rewriteContext.ClearRewriteCache();
}

public string Rewrite(string value)
{
try
{
if (this.rewriteContext != null)
{
this.rewriteContext.ClearRewriteCache();
value = this.sessionID + " rewrite context is not null " + this.rewriteContext.RewriteCacheEnabled;
}
else
{
value = this.sessionID + " rewrite context is null";
}

return value + " this is from new custom provider";
}
catch (Exception ex)
{
value = "false";
return value;
}
}
public IEnumerable<SettingDescriptor> GetSettings()
{
yield return new SettingDescriptor("SessionID", "Session ID");

}


}

Apart from the above code I have tried the below option as well. But no luck.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Rewrite

RewriteCacheEnabled – By default 1 (true). Enables (1) or disables (0) the internal cache of rewritten URLs. Disabling it will have a negative performance impact.

Appreciated if anyone helps to resolve this. I have wasted lot of time on this.

Regards

Nagendra Kumar.S

 

Viewing all 28504 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>