iis

Get IIS log location via powershell?

我是研究僧i 提交于 2020-05-29 04:16:13
问题 I'm writing a script that I'd like to be able to easily move between IIS servers to analyze logs, but these servers store the logs in different places. Some on C:/ some on D:/ some in W3SVC1, some in W3SVC3. I'd like to be able to have powershell look this information up itself rather than having to manually edit this on each server. (Yeah, I'm a lazy sysadmin. #automateallthethings.) Is this information available to PowerShell if I maybe pass the domain to it or something? 回答1: I found this

Get IIS log location via powershell?

佐手、 提交于 2020-05-29 04:15:53
问题 I'm writing a script that I'd like to be able to easily move between IIS servers to analyze logs, but these servers store the logs in different places. Some on C:/ some on D:/ some in W3SVC1, some in W3SVC3. I'd like to be able to have powershell look this information up itself rather than having to manually edit this on each server. (Yeah, I'm a lazy sysadmin. #automateallthethings.) Is this information available to PowerShell if I maybe pass the domain to it or something? 回答1: I found this

Get authenticated user's groups from Active Directory in Node

非 Y 不嫁゛ 提交于 2020-05-27 11:54:19
问题 We were asked to move our NodeJS app to run under IIS (Windows Server 2012R2) and integrate with an existing Active Directory. We were requested to remove the login page, and instead use Windows Authentication to get the (already authenticated) user's ID, and the use the groups he/she belongs to, to control their authorization level within the app. I've installed iisnode to run my app under IIS, and figured I'll use either passport-windowsauth, or node-activedirectory to get the group

IIS 503 “Service Unavailable” over HTTPS, HTTP works fine

孤者浪人 提交于 2020-05-27 05:03:08
问题 I have a web site running in IIS 7.5. When I access the site over HTTP, everything works fine. When I run the site over HTTPS, I immediately get an HTTP 503 error "Service Unavailable". The SSL certificate used on the site self-generated/self-signed. Here are the solutions that I've seen for similar problems that do not apply to this scenario: User identity is outdated Reason: The same App Pool that runs successfully under HTTP is used with HTTPS App pool user's password changed Reason: The

IIS 8.5 Serving Old Files

帅比萌擦擦* 提交于 2020-05-26 17:10:41
问题 I have a clickonce application on Windows Server 2012 IIS 8.5. I recently updated it to a new version and it works fine, except for one url used by a second web page to link to it. It links directly to the .application file and when I use that link I get version 2.1.0.10 of that file instead of the one that is one the server version 3.1.0.1. It's only when using the that link, other url's server the correct file. I've even stopped the website on both servers (load balanced) and the link still

IIS 8.5 Serving Old Files

断了今生、忘了曾经 提交于 2020-05-26 17:09:36
问题 I have a clickonce application on Windows Server 2012 IIS 8.5. I recently updated it to a new version and it works fine, except for one url used by a second web page to link to it. It links directly to the .application file and when I use that link I get version 2.1.0.10 of that file instead of the one that is one the server version 3.1.0.1. It's only when using the that link, other url's server the correct file. I've even stopped the website on both servers (load balanced) and the link still

IIS 8.5 Serving Old Files

血红的双手。 提交于 2020-05-26 17:08:05
问题 I have a clickonce application on Windows Server 2012 IIS 8.5. I recently updated it to a new version and it works fine, except for one url used by a second web page to link to it. It links directly to the .application file and when I use that link I get version 2.1.0.10 of that file instead of the one that is one the server version 3.1.0.1. It's only when using the that link, other url's server the correct file. I've even stopped the website on both servers (load balanced) and the link still

Run Angular and ASP.NET Web API on the same port

南楼画角 提交于 2020-05-26 10:57:28
问题 I am currently using angular to issue API call to an API server running ASP.NET. However, I have a cross-origin issue as for angular development, I am using localhost. While in the production version they will all run under the same domain using IIS. Is there a way to run the angular app on the same port with ASP.NET? P.S.: I am also open for other alternatives on solving this issue. 回答1: I've encountered the same problem, then I've found this post on medium, hope this works for you. Edit:

How to host my ASP.NET core site on IIS (in development environment, without deploy / publish)

有些话、适合烂在心里 提交于 2020-05-26 02:44:07
问题 I used to host my ASP.NET sites (not core) on IIS locally, in my development environment. Doing it helped me avoiding from using IIS Express (It's very uncomfortable to start & stop IIS express every time). In this way all I had to do is to rebuild and refresh the site. My goal is to work with ASP.NET core in the same way. I read this: https://docs.microsoft.com/en-us/aspnet/core/publishing/iis?tabs=aspnetcore2x and it didn't go well. What I'm looking for is to do it without deploy / publish

How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS

我只是一个虾纸丫 提交于 2020-05-25 19:58:30
问题 I created the template Angular / ASP.NET Core with authorisation support using this command: dotnet new angular --auth Individual This is an: ASP.NET Core 3.0 App with ASP.NET Core Identity for authenticating and storing users, IdentityServer4 for implementing Open ID Connect, Angular SPA, All pre-configured to work together. Before I deploy my app based on this template, I'm trying to first deploy this template app to IIS. I've deployed the app to IIS and have a database setup and the app