Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

IIS 8.5 Windows authentication + Rewrite URL

$
0
0

Hello, I've been having some trouble with IIS 8.5 and the Rewrite URL module 2.0

My first problem is getting my PHP website to interact with the server-variables that IIS sends out, apparently it doesn't send me a REQUEST_URI-variable, rather a HTTP_X_ORIGINAL_URL-variable, can you enforce IIS to send out a REQUEST_URI-variable?

The other, more serious problem, is getting the windows authentication (using active directory) to work combined with the rewrite url module. It works fine connecting and authenticating to my web application using active directory, and I get the username and domain through server variables, but as fast as I add a rewrite rule, I can't seem to connect, the authentication window pops up and my credentials doesn't match apparently, I get nothing out of the security log either, which is filled with success messages when I avoid to use the rewrite module.

This is my rewrite rule:

<rewrite><rules><rule name="Rule" stopProcessing="true"><match url="^(.*)$"/><action type="Rewrite" url="index.php"/></rule></rules></rewrite>

Does anyone know of this problem, and could maybe help? Thanks!


Viewing all articles
Browse latest Browse all 780

Trending Articles



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