Forum Widgets
Latest Discussions
Update to de lastest version of IIS
HI! In the company I work for, we have many servers with several versions of Windows Server (from 2012 R2 to 2022) and some of them have the IIS role installed. I have to check if IIS is updated in every server, so I'd like to know if you can help me whit the following: How can I Update IIS to te lastest version? I searched the web and looks like the only way to upgrade it is using WIndows Update, but in my organisation it is disabled by policy. I was searching for information about the different versions of IIS in Microsoft learn and all I found was this: Internet Information Services (IIS) - Microsoft Lifecycle | Microsoft Learn. I understand that there are several versions of IIS 10, some of the available only for Windows server 2019 and others only for Win Server 2022. Where can I find that info? Thank you.marcelo5284Jan 07, 2025Copper Contributor79Views1like1CommentIIS | APPCMD.exe ile default document eklemek (tr-TR)
APPCMD komutları ile IIS 10.0 yonetimi yazılarımıza devam ediyorum. Varsayılan dokuman kapsamında yeni bir default documents eklemek isterseniz APPCMD komutu ile bu işlemi çok basit bir komut ile gerçekleştirebilirsiniz. APPCMD ile default document oluştumak isterseniz ilk olarak IIS "default documant" feature yüklü olması gerekmektedir. "Default Document" yüklemek için aşağıdaki PowerShell komutu ile "default document" feature yükleyebilirsiniz. Install-WindowsFeature Web-Default-Doc Feature yüklemesi tamamlandıktan sonra default document tanımlamak için APPCMD komut dizinine gidiyoruz. Yazımızda örnek olarak index.php ekleyerek devam edebiliriz. IIS10.0 kurulumu sonrası default document listesinde gelmeyen "index.php" ekleyerek işlemimiz gerçekleştreceğim. appcmd set config /section:defaultDocument /+files.[value='index.php'] C:\Windows\System32\inetsrv>appcmd set config /section:defaultDocument /+files.[value='index.php'] Applied configuration changes to section "system.webServer/defaultDocument" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST" Eklediğinzi yada yükleme ile gelen varsayılan bir default document silmek içinde komutumuzda "+" yerine "-" kullanarak gerçekleştirebilirsiniz. appcmd set config /section:defaultDocument /-files.[value='index.php'] C:\Windows\System32\inetsrv>appcmd set config /section:defaultDocument /-files.[value='index.php'] Applied configuration changes to section "system.webServer/defaultDocument" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"emreozanmemisMar 15, 2022Steel Contributor1KViews1like0CommentsIIS | APPCMD.exe ile config backup işlemi (tr-TR)
IIS10.0 üzerinde bir çok config yaptınız ve IIS configlerinizi bir başka web server üzerinde kullanmanız yada bunları bir şekilde yedekleme ihtiyacı duyduğunuzda APPCMD komutu ile config dosylarınızın yedeklerini alabilir hatta bunları sıkıştırararak saklayabilirsiniz. Mesala bu komutları task schedule ile planlayıp düzenli olarak yedeklerini alabilirsiniz. Appcmd add backup "0zan-%date%" C:\Windows\System32\inetsrv>Appcmd add backup "0zan-%date%" BACKUP object "0zan-Sal 21.05.2019" added Aldığınız backupları sıkıştırıp arşivlemek içinde aşağıdaki komutu kullanabilirsiniz. "C:\Program Files\WinZip\winzip64.exe" a "C:\inetpub\backup\ozan-%date%.zip" u "C:\Windows\System32\inetsrv\backup\ozan-%date%" C:\Windows\System32\inetsrv>"C:\Program Files\WinZip\winzip64.exe" a "C:\inetpub\backup\ozan-%date%.zip" u "C:\Windows\System32\inetsrv\backup\ozan-%date%"emreozanmemisMar 15, 2022Steel Contributor855Views1like0CommentsIIS | APPCMD.exe nedir? (tr-TR)
AppCmd.exe, IIS 10.0 ve üstünde bulunan web sitelerini yönetmek için kullanılan komut satırı uygulama aracıdır. AppCmd, web sunucunuzu GUI kullanmadan kolayca kontrol etmenizi yönetmenizi kolaylaştıran komutlar bütünüdür. AppCmd başlıca kabiliyetleri aşağıdaki gibidir. Siteler, uygulamalar, uygulama havuzları ve sanal dizinler oluşturup yönetebilirsiniz. Siteleri, site havuzlarının işlemlerini başlatıp ve durdurabilirsiniz. Aktif işlemleri listeleyin ve anlık yürütülen işlemleri inceleyebilirsiniz. IIS yapılandırma ayarlarınızı import yada export edebilirsiniz. Appcmd.exe çalıştırmak için sisteminizde IIS 10.0 yüklü olması gerekmektedir. Ek bilgi olarak belirtmek isterim. IIS 7.0 ve sonrası web serverlarda appcmd.exe komutunu kullanabilirsiniz. Appcmd.exe komutunu çalıştırmak için CMD komut satırınızı yönetici olarak çalıştırınız ve "%windir%\system32\inetsrv\" dizinine gidiniz. Appcmd.exe yazıp enter basınız. C:\windows\System32\inetsrv>appcmd.exe General purpose IIS command line administration tool. APPCMD (command) (object-type) <identifier> </parameter1:value1 ...> Supported object types: SITE Administration of virtual sites APP Administration of applications VDIR Administration of virtual directories APPPOOL Administration of application pools CONFIG Administration of general configuration sections WP Administration of worker processes REQUEST Administration of HTTP requests MODULE Administration of server modules BACKUP Administration of server configuration backups TRACE Working with failed request trace logs BINDING Object for working with SSL bindings (To list commands supported by each object use /?, e.g. 'appcmd.exe site /?') General parameters: /? Display context-sensitive help message. /text<:value> Generate output in text format (default). /text:* shows all object properties in detail view. /text:<attribute> shows the value of the specified attribute for each object. /xml Generate output in XML format. Use this to produce output that can be sent to another command running in /in mode. /in or - Read and operate on XML input from standard input. Use this to operate on input produced by another command running in /xml mode. /config<:*> Show configuration for displayed objects. /config:* also includes inherited configuration. /metadata Show configuration metadata when displaying configuration. /commit Set config path where configuration changes are saved. Can specify either a specific configuration path, "site", "app", "parent", or "url" to save to the appropriate portion of the path being edited by the command, "apphost", "webroot", or "machine" for the corresponding configuration level. /apphostconfig Specify an alternate applicationHost.config file to edit. /debug Show debugging information for command execution. Use "!" to escape parameters that have same names as the general parameters, like "/!debug:value" to set a config property named "debug". C:\windows\System32\inetsrv> Appcmd komutu kullanımı sırasında parametre yada objelerle çalışırken yardım almak için tüm cmd komutlarında olduğu gibi appcmd.exe /? Yapmanız yeterli olacaktır. Örnek olarak en çok kullanılan appcmd site komutu ile başlayalım. appcmd site /? yaparak site komutu ile neler yapabilriz bakalım. C:\windows\System32\inetsrv>appcmd site /? Administration of virtual sites APPCMD (command) SITE <identifier> <-parameter1:value1 ...> Supported commands: list List virtual sites set Configure virtual site add Add new virtual site delete Delete virtual site start Start virtual site stop Stop virtual site (To get help for each command use /?, e.g. 'appcmd.exe add site /?'.) C:\windows\System32\inetsrv> Örneğimizi biraz dah geliştirip IIS10.0 üzerinde bulunan web sitelerimizin listesini alalım. appcmd list site komutu ile kontrol edelim. C:\windows\System32\inetsrv>appcmd list site SITE "Default Web Site" (id:1,bindings:http/*:80:,state:Started) SITE "Reporter" (id:2,bindings:https/:1239:,state:Started) SITE "ozan site" (id:7,bindings:http/*:80:ozantest.com,state:Unknown) C:\windows\System32\inetsrv> 3 adet web sitesi çalışmakta olduğunu görüntülüyorum. Web serverim üzerinde. Yeni bir tane site eklemek istediğimizde appcmd add site komutu ile bu işlemi gerçekleştirebilirsiniz. Ben bindings ve path yapılandırmasınıda bu komutuma ekleyeceğim sizlerinde bu şekilde yapmanızı tavsiye ederim. GUI üzerinde daha sonra hata almamanız için path ve bandings ayarlarınızı yapılandırmanız önemlidir. C:\windows\System32\inetsrv>AppCmd add site /name:ozan /id:18 /bindings:http/*:81: /physicalPath:C:\ozan SITE object "ozan" added APP object "ozan/" added VDIR object "ozan/" added C:\windows\System32\inetsrv> List komutu ile yeni web sitemi tekrar kontrol ediyorum. C:\windows\System32\inetsrv>appcmd list site SITE "Default Web Site" (id:1,bindings:http/*:80:,state:Started) SITE "VeeamReporter" (id:2,bindings:https/:1239:,state:Started) SITE "ozan site" (id:7,bindings:http/*:80:ozantest.com,state:Unknown) SITE "ozan" (id:18,bindings:http/*:81:,state:Started) C:\windows\System32\inetsrv> En son satırda eklediğimiz yeni web sitesini görebilirsiniz. Listeleme kapsamında çalışan durmuş olan yada bilinmeyen web uygulamalarını listeleyebilirsiniz. C:\windows\System32\inetsrv>appcmd list sites /state:started SITE "Default Web Site" (id:1,bindings:http/*:80:,state:Started) SITE "VeeamReporter" (id:2,bindings:https/:1239:,state:Started) SITE "ozan" (id:18,bindings:http/*:81:,state:Started) C:\windows\System32\inetsrv>appcmd list sites /state:stopped C:\windows\System32\inetsrv>appcmd list sites /state:unknown SITE "ozan site" (id:7,bindings:http/*:80:ozantest.com,state:Unknown) C:\windows\System32\inetsrv> Bir web sitenizin config görüntülemek için /config parametresini kullanabilrisiniz. C:\windows\System32\inetsrv>appcmd list sites "Default Web Site" /config <site name="Default Web Site" id="1"> <bindings> <binding protocol="http" bindingInformation="*:80:" /> </bindings> <limits /> <logFile> <customFields> </customFields> </logFile> <traceFailedRequestsLogging /> <hsts /> <applicationDefaults /> <virtualDirectoryDefaults /> <ftpServer> <connections /> <security> <dataChannelSecurity /> <commandFiltering> </commandFiltering> <ssl /> <sslClientCertificates /> <authentication> <anonymousAuthentication /> <basicAuthentication /> <clientCertAuthentication /> <customAuthentication> <providers> </providers> </customAuthentication> </authentication> <customAuthorization> <provider /> </customAuthorization> </security> <customFeatures> <providers> </providers> </customFeatures> <messages /> <fileHandling /> <firewallSupport /> <userIsolation> <activeDirectory /> </userIsolation> <directoryBrowse /> <logFile /> </ftpServer> <application path="/"> <virtualDirectoryDefaults /> <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot" /> </application> </site> C:\windows\System32\inetsrv>emreozanmemisMar 15, 2022Steel Contributor1.8KViews1like0CommentsIIS | HTTP Error 404.11 hata kodunun APPCMD.exe ile çözümü
IIS kullanıcılarının zaman zaman karşılaştığı bir sorundur. Genelde HTTP Error 404.11 - URL_DOUBLE_ESCAPED hatası olarak bilinine bu hatanın temel sebebi HTTP istekleri çift gelmesinden kaynaklıdır. Sunucu da bu istekleri kabul etmediği için bu hatayı alırsınız. Çözümü için aşağıdaki adımları uygulayabilirsiniz. Windows işletim sisteminizin CMD komut satırını açınız. Komut satırında "%windir%\system32\inetsrv" dizininde gidiniz. appcmd.exe ve ilgili parametreleri aşağıdaki şekilde giriniz ve enter tuşuna basınız. Appcmd set config "Default Web Site" /section:system.webServer/Security/requestFiltering -allowDoubleEscaping:True Bu komut ile web.config dosyasında gerekli düzenlemeleri yapmış olacaksınız appcmd set config "Default Web Site" /section:system.webServer/Security/requestFiltering -allowDoubleEscaping:True /commit:appHost Bu komut ile appllicationHost.config dosyasında gerekli düzenlemeleri yapmış olacaksınız. Not: Yazılımınıza ait özel bir web.config dosyası kullanıyorsanız "allowdoubleescaping" parametresini kontrol etmenizi öneririm.emreozanmemisMar 15, 2022Steel Contributor1.1KViews1like0CommentsIIS ARR healthcheck not sent to all the configured host
We have a IIS RP configured for 50+ target servers. some of the servers shutdown when they are not used. After RP restarted, health check try to reach all the servers, but after a while, RP doesn't even send healthcheck to some servers. (this was confirmed by using wireshark on the target host, no traffic come in from the RP). Using netstat, I saw mulitple healthcheck send to the same down servers with SYN_SENT state. But some servers do not have any healthcheck request sent. There is no iis log or trace to help us find when those servers stop receiving healthcheck and if there is any limitation on the total pending healthcheck. The health test interval for these servers varies between 5~30 sec, while the timeout between 10~30. Any suggestion on what to do to make health check hit all servers? Thanks, XuXuYang1795Jan 27, 2022Copper Contributor873Views1like1CommentHow to add a domain in Windows 10 Pro IIS so it works WITH and WITHOUT www. with ONE (1) entry
Hi there - When i add *.domain.com, then only xxx.domain.com (e.g. www.domain.com) will work - but NOT domain.com - When i add www.domain.com, then only www.domain.com will work - but NOT domain.com QUESTION: Do i need to add 2 domains (1x with .www, 1x without) to realize that? Thank you for your feedbacks! 🙂 Kind regards, HansVtenvdfuen980Jan 20, 2022Copper Contributor825Views1like2Comments
Resources
Tags
- IIS21 Topics
- http4 Topics
- https3 Topics
- url authorization rules2 Topics
- IIS Windows Server 20222 Topics
- roadmap2 Topics
- url rewrite2 Topics
- exchange2 Topics
- Windows Server1 Topic
- http module1 Topic