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

IIS does not recognize Windows authentication via PowerShelll

$
0
0

I am trying to update the status of Windows authentication in IIS, I tried to execute with the command:

"Set-WebConfigurationProperty -Filter "/system.webServer/security/authentication/windowsAuthentication" -Name Enabled -Value True -PSPath "IIS:\Sites\$SiteName\$AppName"

but I get the error:

WARNING Property Enable is not found on /system.webServer/security/authentication/windowsAuthentication

Microsoft Authentication works and is installed on the machine I am working on, I would love if someone got a solution


Python-Django Web IIS configuration on VM

$
0
0

Hello guys,

i configured IIS for python Django web Application on VM but i am getting this error. anyone have any idea how to solve this error thanks in advanced 

Module FastCgiModule
Notification ExecuteRequestHandler
Handler Python FastCGI
Error Code 0x8007010b
Requested URL http://localhost:8003/
Physical Path C:\inetpub\wwwroot\KPMG_KRX
Logon Method Anonymous
Logon User Anonymous

IIS does not recognize Windows authentication via PowerShelll

$
0
0

I am trying to update the status of Windows authentication in IIS, I tried to execute with the command:

"Set-WebConfigurationProperty -Filter "/system.webServer/security/authentication/windowsAuthentication" -Name Enabled -Value True -PSPath "IIS:\Sites\$SiteName\$AppName"

but I get the error:

WARNING Property Enable is not found on /system.webServer/security/authentication/windowsAuthentication

Microsoft Authentication works and is installed on the machine I am working on, I would love if someone got a solution

Website giving 500 internal server error

$
0
0

Hi Team,

The webapi deployed on window server 2019 having IIS 10 gives 500 internal server error the first time after deployment. But as we restart the IIS it goes away..

Any clue, why it's happening

C++ native module, Request payload getting empty once used ReadEntityBody method

$
0
0

Hi Team,

We are using C++ native module to log the request payload and user identity. However, we are able to read the request payload using ReadEntityBody, but after that request payload is no longer available for further processing or getting blank.

My question is, how we can retain the payload for further processing?

Best Regards,

IIS does not recognize Windows authentication via PowerShelll

$
0
0

I am trying to update the status of Windows authentication in IIS, I tried to execute with the command:

"Set-WebConfigurationProperty -Filter "/system.webServer/security/authentication/windowsAuthentication" -Name Enabled -Value True -PSPath "IIS:\Sites\$SiteName\$AppName"

but I get the error:

WARNING Property Enable is not found on /system.webServer/security/authentication/windowsAuthentication

Microsoft Authentication works and is installed on the machine I am working on, I would love if someone got a solution

Web platform installer showing old version wordpress

$
0
0

Hi, there I am very new to the IIS forum. Please forgive me for my bad English.

I recently tried to install WordPress on windows server 2016 and 2019 Azure VM, but it is showing the old version of WordPress as shown in the capture below. The installer is not working later I checked the WordPress link from the direct link which does actually not exist. Why WPI not showing the latest WordPress on this server. Please help me. Thank you.

 

web hosting on window server for new comer

$
0
0

hi 

i want to know where to start to build web hosting on window server on which version for best.where do i get contact from to build-operate-knowledge transfer about web hosting on window server.i read  doc site  about web hosting but just know a few such ARR,front end server,back end server,etc,i cant continue anymore.i try contacting Partner Technical Consultant before i go to this community but the answer is i need to contact consultant services.who is this guy.may i need guy to build-operate-knowledge transfer for web hosting on window server.arch


IIS 7.5 adding 'Document Moved' content when 'Location' header is present

$
0
0

Hello,

Using PHP 5.4 and IIS 7.5, I'm trying to develop some REST web services compliant with the HAL specification.

In this context, when we create an object with a POST request, the expect result is a201 http response with the Location header targetting the object URL andthe JSON of the object created in the content.

For example the response to my POST request could be :

Status Code:201 Created
Location:http://localphp.aufeminin.com/reloaded/manage/admin/api/user/58
{"id":58,"username":"h","_links":{"self":{"href":"http:\/\/localphp.aufeminin.com\/reloaded\/manage\/admin\/api\/user\/58"}
  }
}

But it seems, that as soon as we have a Location header, IIS adds a 'Document Moved' section to the content.

For example in this case :

<head><title>Document déplacé</title></head><body><h1>Objet déplacé</h1>Ce document peut être consulté <a HREF="http://localphp.aufeminin.com/reloaded/manage/admin/api/user/58">ici</a></body>
{"id":58,"username":...

How can I disable this behavior of IIS ? How can I avoid the 'Document moved' html content while keeping theLocation header ?

Thanks a lot for your help,

Laurent Mirguet

URL Rewrite to different web applications

$
0
0

Hello,

Here's my scenario. I have two web applications running under one web site on my server. I would like to configure my server so that if a user navigates to a specific URL they will access a specific web application. Specifically, the web apps are a mobile app and a standard desktop app.

For example, if a user types in "http://webbapplicationA" I would like them to be redirected to "http://webserver/appA". If a user types in "http://webapplicationB" they should go to "http://webserver/appB".

I've accomplished this before using Host Headers. However, since these are web applications running on the same site, I can't use Host Headers (as far as I know).

Is it possible to use the URL Rewrite module to accomplish this? 

Unable to browse certsrv

$
0
0

Added the roles for certsrv but cant seem to browse

This was a WSUS server previously.

Wondering if reinstalling IIS and WAS would resolve without creating ay other issues.  Currently this IIS is hosting nothing else

 

Server Error in Application "application name"

HTTP Error 500.19 – Internal Server Error

HRESULT: 0x8007007e

Description of HResult
The requested page cannot be accessed because the related configuration data for the page is invalid.
This problem occurs because the ApplicationHost.config file or the Web.config file references a module or a DLL that is invalid or that does not exist. In the ApplicationHost.config file or in the Web.config file, locate the module reference or the DLL reference that is invalid, and then fix the reference. To determine which module reference is incorrect, enable Failed Request Tracing, and then reproduce the problem.  

Error during Web-socket handshake: Incorrect 'Sec-WebSocket-Accept' header value"

$
0
0

I am using Windows server 2019 with reverse proxy configured with ARR 3 and hosted my project with node.js and socket.io, I am redirecting the websitewww.mywebsite.com/project to internal addresshttp://192.168.0.190:800.

When I try to access the website http://192.168.0.190:800 inside the server socket.io is working but when i try to access the website outside the network using external address i am getting the error "Error during Web-socket handshake: Incorrect 'Sec-WebSocket-Accept' header value"

My reverse proxy configuration

<rule name="vrp" stopProcessing="true">
 <match url="^/project/(.*)" />
 <action type="Rewrite" url="http://192.168.0.190:800/{R:1}" />
 </rule>

Help me to solve the issue.

Thanks,

Santhosh

Is It Possible to Redirect to a Different Port Using URL Rewrite?

Logging issue with X-Forwarded-For, wrong location

$
0
0

I have a really strange issue with logging the x-forwarded-for header in IIS logs on a few particular servers.

The log looks like this:

#Software: Microsoft Internet Information Services 8.5
#Version: 1.0
#Date: 2021-05-04 00:00:12
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
2021-04-20 11:24:51 2000000a3+X-Forwarded-For+-+ serverxxx x.x.x.x GET /path/path/paths.png - 443 - x.x.x.x HTTP/1.1 Mozilla/5.0+(Windows+NT+6.2;+WOW64)+AppleWebKit/538.1+(KHTML,+like+Gecko)+PhantomJS/2.1.1+Safari/538.1 ASPSESSIONIDSXXXXX=XXXXXX https://website.company.net/path/path/paths.asp sitename.company.net 200 0 0 51636 465 45

As you can see, the x-forwarded-for info looks all kinds of weird and it appears after the date/time. I have 5 x Windows Server 2012 R2 IIS servers which all have the problem. I have another ~50 servers which are absolutely fine. On the 50 servers that are OK, the x-forwarded-for field appears in the #fields of the log and correctly as the last entry of a line.

I have the logging field setup uniformly across all the servers on the IIS root as it was done via a script.

The IIS log file name doesn't get the _x at the end of the filename like the other servers do.

I can see in the applicationHost.config we have the following, which is exactly the same between a working server and a non working server. There are no other entries in there for <LogFile>

<siteDefaults><logFile logExtFileFlags="Date, Time, ClientIP, UserName, SiteName, ComputerName, ServerIP, Method, UriStem, UriQuery, HttpStatus, Win32Status, BytesSent, BytesRecv, TimeTaken, ServerPort, UserAgent, Cookie, Referer, ProtocolVersion, Host, HttpSubStatus" logFormat="W3C" directory="%SystemDrive%\inetpub\logs\LogFiles"><customFields><clear /><add logFieldName="X-Forwarded-For" sourceName="X-Forwarded-For" sourceType="RequestHeader" /></customFields></logFile><traceFailedRequestsLogging directory="%SystemDrive%\inetpub\logs\FailedReqLogFiles" /></siteDefaults>

Does anyone have any idea why this is happening?

Wincache for PHP 8?

$
0
0

Since Microsoft officially dropped support for PHP 8 and won't provide any binaries for it, will the same be true for Wincache? Or will you continue maintaining Wincache for PHP 8 and future versions?


Streaming...

$
0
0
Howdy!
ok!here is my problem,i have created a web application and deploy it,the webapp is capable of uploading files,
now what i want is whenever i choose a folder from the list,i want to know the exact path of the selected folder from the "server" so
that when i upload my files it will automatically dump to that folder.my code below doesnt work cause u can only upload a file only for
the path that i have set...

Dim MyPath,MyFiles

MyPath = server.mappath(request.applicationpath) & "\"
MyFiles = "myfile.zip"

userPostedFile.SaveAs(MyPath  & Path.GetFileName(myfiles))

plz help mo to improve this code.^_^

NeeTrihT

HTTP Error 404. The requested resource is not found.

$
0
0

Hi there,

I create a website in iis10, it works fine with localhost, but when i try to run the website with ip address, but it shows HTTP Error 404. The requested resource is not found.

Does anyone know why this is?

Python Flask App Stuck in Waiting for localhost

$
0
0

I'm trying to run a flask app on a Server 2016 machine with IIS v10 and the httpplatformhander, here's my web.config:

<?xml version="1.0" encoding="utf-8"?><configuration><system.webServer><handlers><add name="PythonHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" requireAccess="Script" /></handlers><httpPlatform processPath="C:\ProgramData\Anaconda3\python.exe" 
                  arguments="C:\Users\test\Documents\test_app\application.py" 
                  stdoutLogEnabled="true" 
                  stdoutLogFile="C:\Users\test\Documents\test_app\logs\acp.log" 
                  startupTimeLimit="60" 
                  processesPerApplication="16"><environmentVariables><environmentVariable name="SERVER_PORT" value="%HTTP_PLATFORM_PORT%" /></environmentVariables></httpPlatform></system.webServer></configuration>

When I run `python application.py` in cmd it correctly opens my 'Hello, World!' app, but I can't seem to get it to work through the httpPlatformHandler.  I added IIS_IUSRS to the security options for my test_app folder and the anaconda3 folder.  Is there a location where I can see more detailed logs for diagnostics?

Viewing all 26858 articles
Browse latest View live


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