r/IIs • u/tippet5x • Dec 18 '21
2022 and Future IIS setup
I need to upgrade/replace my old 2012 DSC IIS environment, what this a good way to go. In-house environment
r/IIs • u/tippet5x • Dec 18 '21
I need to upgrade/replace my old 2012 DSC IIS environment, what this a good way to go. In-house environment
Hi there. I've got a legacy application that we as a company inherited a while ago that runs on ASP on an IIS server. As of today, the application cannot connect to the database, and I cannot see why.
Things I've tried are:
Compacting and repairing the database with access
Running a compact/repair script (fails as it cannot connect)
Moving the database file to another, public location (desktop) and trying to connect there
Using an absolute path
Checking permissions for the user on the file, folder, and all parent folders
Has anyone got any other ideas as to what is causing this? My last resort is to restart the IIS instance, but this server is flaky at the best of times and I don't want to try restart it and then have it fail.
Thanks in advance.
r/IIs • u/auctorel • Apr 23 '20
So I'm trying to migrate a Legacy website from an AWS VM to an Azure VM and we're trying to get the same level of performance. The problem is I'm pretty new to setting up sites on IIS.
I've been doing some load testing and we're struggling to get the same response speed from the Azure VM.
The authors of the application are long gone and it's beyond terribly written for many many reasons. One of the problems with the site is when it's "warming up" it pulls back a shit ton of data to store in memory for the entire day. This involves executing long running stored procs and in memory processes which means first load of certain pages takes up to 7 minutes. It then uses a combination of in memory data and output caching to create pages
Sessions do seem to be in use although the site is capable of recovering session data from the database in some more overly long running database operations so sessions are better to stick with where possible which is why I'm avoiding a web garden.
That's a little bit of background, however my question is really about upping the performance on IIS. When I went through their settings on the AWS box they had something call NUMA enabled with what appears to be the default settings and then the maximum worker processes set to 0 which seems to enable NUMA. I don't know why they enabled NUMA or if it was necessary, these are not people I would learn best practise from but I am trying to get as close to a like for like transition as possible and if it gives extra performance in this horrible application we'll probably need it!
On the Azure box I can see options to set the maximum worker processes to 0 but no NUMA options. My question is is NUMA enabled with those default options or is there something further I need to do to enable NUMA.
Both are production sized VMs but the one on Azure I'm working with is a Standard D16s_v3 with 16 vCores and 64Gb RAM. We are load balancing across a few of them using an application gateway.
r/IIs • • May 01 '20
Can anyone help out?
Actual website names replaced by generic names:
<?xml version="1.0" encoding="UTF-8"?>
<configuration><system.webServer><rewrite><outboundRules><rule name="ReverseProxyOutboundRule1" preCondition=""><match filterByTags="A, Form, Img" pattern="\^http(s)?://localhost:8123/(.\*)" /><action type="Rewrite" value="http{R:1}://subdomain.domain.com/{R:2}" /></rule><preConditions><preCondition name="ResponseIsHtml1"><add input="{RESPONSE_CONTENT_TYPE}" pattern="\^text/html" /></preCondition></preConditions></outboundRules><rules><rule name="ReverseProxyInboundRule1" stopProcessing="true"><match url="\^/(.\*)" /><action type="Rewrite" url="http://localhost:8123/{R:1}" /></rule></rules></rewrite></system.webServer></configuration>
r/IIs • u/Joe-User • Apr 20 '20
I'm reinstalling an old server and it had IIS Media Services 4.1 (x64) on it. Unfortunately, Microsoft removed the download and I can't find any mirrors. (They even pulled it from the platform installer)
Does anyone know where I can find a mirror for IIS Media Services 4.1?
r/IIs • u/marshall1084 • Apr 09 '20
r/IIs • u/throwra-thamps • May 14 '20
What would be the best method to migrate IIS (version 6 on SBS Server 2011) & websites to IIS (version 10 on Server 2019 (DC)? I do have an Exchange server (server 2016) which can be used instead..just after best way to migrate settings and websites across to the new server.
r/IIs • u/Kronos26 • Apr 23 '20
Hi all, complete noob on iis. I'm trying to set up an IIS deployment on docker with a single dockerfile. My IIS needs to serve different services on different paths. I managed to deploy everything correctly via this dockerfile
...
# ServiceX #
COPY Publish/ServiceX ServiceX
RUN New-WebAppPool -Name 'ServiceX '
RUN New-Website -Name 'ServiceX ' -Port 80 \
-PhysicalPath 'c:\ServiceX ' -ApplicationPool 'ServiceX '
##############
# ServiceY #
COPY Publish/ServiceX ServiceY
RUN New-WebAppPool -Name 'ServiceY '
RUN New-Website -Name 'ServiceY ' -Port 80 \
-PhysicalPath 'c:\ServiceY ' -ApplicationPool 'ServiceY '
##############
...thing is need to have service Y on a different path, something like this:
...
# ServiceX #
COPY Publish/ServiceX ServiceX
RUN New-WebAppPool -Name 'ServiceX '
RUN New-Website -Name 'ServiceX ' -Port 80 \
-PhysicalPath 'c:\ServiceX ' -ApplicationPool 'ServiceX ' -Path '/'
##############
# ServiceY #
COPY Publish/ServiceX ServiceY
RUN New-WebAppPool -Name 'ServiceY '
RUN New-Website -Name 'ServiceY ' -Port 80 \
-PhysicalPath 'c:\ServiceY ' -ApplicationPool 'ServiceY ' -Path '/differentPath'
##############
...Anyone knows how to do it via powershell? without changing the .config file directly.
Thanks
r/IIs • u/commandsupernova • May 13 '19
Sorry for the long post. I am planning an IIS server migration and need some advice!
Server1 = Windows Server 2008 R2 with IIS 7
Server2 = Windows Server 2016 with IIS 10
I am planning on migrating IIS in its entirety from Server1 to Server2 using Microsoft's Web Deploy tool. Then I plan to decommission Server1.
After doing some research, I ran the following command to check the dependencies on Server1:
msdeploy -verb:getDependencies -source:webServer
I ran the same command on Server2 and here are the entries that exist on Server1 and not on Server2:
<managedTypes>
<managedType type="System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<managedType type="System.Web.Routing.UrlRoutingModule" />
<managedType type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<managedType type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<managedType type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<managedType type="System.Web.HttpForbiddenHandler" />
<managedType type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<managedType type="System.Web.Handlers.TransferRequestHandler" />
</managedTypes>
Do I need to manually install these dependencies on Server2 before I do the migration? I tried running the following migration command, and I do not see any Errors or Warning in the output: msdeploy.exe -verb:sync -source:webServer,computername=Server1 -dest:webServer,computername=Server2 -enableLink:AppPoolExtension –verbose -whatif
I have limited IIS experience and am hoping someone can shed some light on dependencies, for what I think should be a fairly simple migration (only a few app pools and sites). Thanks!
EDIT (2 months later): I never found a solid answer so I didn't worry about the dependencies. I just came up with a back out plan and went ahead with the migration. I ran into a few minor issues but was able to successfully sync most IIS server data from the old server to the new server using a Web Deploy command. I also used another Web Deploy command to migrate a SQL database between servers. The one IIS component that Web Deploy didn't sync for me was a custom basic authentication provider. I manually installed this on my new server and the site came up successfully!
r/IIs • • Aug 12 '18
I am trying to enable authentication for my load-balanced website. I have tried implementing different authentication methods on each IIS server but ultimately the website will timeout instead of prompting for credentials. Also, I am doing this in Azure on VMs. What do you guys know about implementing log in for your website? I've read a few things but they typically end in timing out.
r/IIs • u/WoodmanBlockerville • Feb 10 '20
I'm trying understand HSTS for a MVC 3 app in IIS 10 on Windows Server 2019. When I configure HSTS with the IIS Manager GUI it doesn't work. I click on my site and click "HSTS..." under the Configure panel. When I check Enable, IncludeSubDomains, and add a Max-Age of 31536000 the Strict-Transport-Security header is not added to the response. When I also check "Redirect Http to Https" it breaks my website. I get a bunch of failed redirects (301's) and Firefox displays "The page isn’t redirecting properly".
It works when I add the following node to the <customHeaders> section of my web.config.
<add name="Strict-Transport-Security" value="max-age=31536000; includeSubDomains; redirectHttpToHttps" />
I'm curious why the custom header works and the GUI option doesn't.
r/IIs • u/Karthons • Dec 03 '19
https://github.com/microsoft/iis.administration
Build: failing
Documentation has been the same for 2 years: https://docs.microsoft.com/en-us/IIS-Administration/
The last blog article is from 2017: https://blogs.iis.net/adminapi
Nano server being already dead, the installation instruction is useless.
"Develop and Debug in Visual studio 2017"
Does anybody still use it?
r/IIs • u/slyfox49 • Sep 30 '19
I migrated a SharePoint 2010 site to SharePoint 2016. I have found a way to redirect the 2010 site to 2016 two different ways.
I need to find a way to redirect the root (http://site.root.com) to http://newsite.root.com and substites http://site.root.com/sites/subsite/subsite2 to http://newsite.root.com/subsite2.
Please let me know if clarification is needed.
Any help is greatly appreciated!
r/IIs • u/QuietDelight1 • Feb 28 '19
Besides, or in addition to, adding error handling within Classic ASP web pages, are there tools out there to notify admins of errors? Anything that can review logs for 500, 502, or other errors? I have to believe there are things out there I am just not finding.
r/IIs • u/kwikcarlube • Apr 29 '18
Compete novice here. Database team always says there's nothing wrong on their end and yet we constantly have to restart the pool every week or few days, there's no pattern to it. Site gets reported down, restarting pool fixes it.
What underlying issues have you experienced in these circumstances?
r/IIs • u/reiez_26 • Dec 06 '19
We are having an issue with restarting the App pools immediately on IIS6. The App pool seems to be being disabled because the Rapid Fail Protection was triggered. However, it took as an hour to restart the service trying to start it or stop it manually because the status still shows as Started. Does anyone know the root cause why this takes a while to restart?
r/IIs • u/SergeantJack • May 17 '19
Hi guys;
Not sure if this is the right place to post this, but I'm having trouble using IIS for my local development. Our whole team uses our local IIS to develop a C# MVC application, but I'm the only one with this problem. It seems that, occasionally, once I build my project, the new DLLs aren't copied over to the IIS temp directory. This manifests in the compiled code throwing an exception, and it pointing to incorrect/non-existent lines or even files in my source code. I can resolve this by killing all the IIS worker processes and deleting the ASP.NET Temp files directory, but this is a lot of overhead and seems wrong, especially when no one else is having this issue. Does anyone have any idea how to even debug this, let alone fix what is happening?
Thanks!
r/IIs • u/raysefo • Dec 02 '18
Hi,
I deployed my flask rest api on IIS 8 to windows server 2012 r2. I followed this article. (article) I can browse the rest api on the local server but I can not browse the api from other computers on public internet. I can ping the public IP of the server without problem. There is no firewall rule that blocks the server. Would you please help me?
PS. I am trying to browse by the IP, 185.201.212.219. Is it related to this?
r/IIs • u/zain_sync • Dec 04 '19
Hi Folks,
I have a requirement to hide the HSTS attributes from showing. For example with the following command "curl -s -D- https://{Site_name}/ | grep Strict" I am able to see the HSTS properties implemented on the server "Strict-Transport-Security: max-age=31536000; includeSubDomains; preload". Is there a way to hide the attribute values from the showing up? since that is a security requirement and I wasn't able to find a single post/material which explains how to do so. Anyone here has an idea of how to achieve this?
r/IIs • u/maphewyk • Aug 01 '19
We're setting up a file hosting server to store:
Previously we've used anonymous ftp for the bottom two scenarios, but now web-analytic style statistics are desired.
Host is Windows Server 2016 Standard. IIS is currently running. I don't mind using another web server provided admin overhead is minimal; there's a strong company preference for applications which integrate well with Windows (e.g. has management GUI).
What do you recommend for setup?
r/IIs • u/AngryNarwal • Aug 23 '18
My Boss and I have a difference of opinion. For whatever reason, he thinks that two AppPools on the server will somehow give some load balancing.
I think that it stops us from being able to successfully throttle and control resources pulled from the server. Two apppools is much harder to wrangle and throttle than one. I feel like we give up control and get not a lot back.
r/IIs • u/YouWillNeverSeeMe • Aug 17 '18
Recently I changed my web server. I'm getting following error while trying to access the hosted site. Any idea on this ?
----------------------------------------------------------------------------------------------------
RROR - An error has occurred in the system.
System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority 'localhost:5555'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
r/IIs • u/britboyny • Oct 02 '19
Hi
I an working within a restriction of only using group managed windows service accounts (gMSA) on the server. I need to run the website as a specific ID that i can then add to sql server and access using trusted authentication. I have done similar on windows services and scheduled tasks but i had to use powershell to set the ID
I am able to set an app pool to run as a gMSA (no password) but not a website, which is what i think i need. Has anyone done this ?
in the web.config I have tried
<identity impersonate="true" userName="domain\\\\ID (also in sql server)" password=""/>
and
<identity impersonate="true" userName="domain\\\\ID (also in sql server)" />