multiple reverse proxy host broken

Nathan Bridgewater explained how to configure multiple reverse proxies properly with apache and IIS (without losing original domain name). I’m reposting this for myself to keep a record of this fine work.

multiple reverse proxy host broken iis serving up local server name instead of the ServerName that was originally passed to it. How to . . . → Read More: multiple reverse proxy host broken

Fix HTTP Error 401.3 IIS 6.0

Details

This particular error is indicating that some file in your site’s directory structure does not have permissions to be viewed by your web site. You need to ensure all files for your site are readable/executable

One easy way to debug this is to run the command line tool calcs on a different (working) . . . → Read More: Fix HTTP Error 401.3 IIS 6.0

IIS 6.0 Add Host Headers in Bulk

IIS 6.0 Add Host Headers in Bulk

To add host headers in bulk (IIS 6.0) you will need these two scripts in C:\Inetpub\AdminScripts:

AppendHostHeaders.vbs chglist.vbs

Additionally you will need an input csv called “c:\sites.csv” that follows this format (id, sitename must be first line):

id, sitename 1, www.test.com 2042610413, www2.two.testing.com 2042610413, www2.two.www.test.com 1, www.testing.com Script: . . . → Read More: IIS 6.0 Add Host Headers in Bulk

iis 6.0 script 301 redirect

How can you script a 301 redirect in IIS 6.0?

@REM Redirect site #1 in IIS 6.0 to brakertech.com cscript.exe c:\inetpub\adminscripts\adsutil.vbs set w3svc/1/Root/HttpRedirect “http://brakertech.com, EXACT_DESTINATION,PERMANENT”

@REM List redirect properties for site #1 in IIS 6.0 cscript.exe c:\inetpub\adminscripts\adsutil.vbs get w3svc/1/Root/HttpRedirect

@REM Delete redirect properties for site #1 in IIS 6.0 cscript.exe c:\inetpub\adminscripts\adsutil.vbs delete w3svc/1/Root/HttpRedirect

 

. . . → Read More: iis 6.0 script 301 redirect

Run IIS6 in 32 bit mode

To run IIS6 in 32bit mode you need to run these commands:

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1 “C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe” -i

fix 401.3 IIS WordPress PHP Upload

How do you fix 401.3 IIS WordPress PHP Upload ?

Issue

After uploading a file via WordPress you get prompted for username and password (due to IIS 6 and php being the backend).

Details

On a Microsoft platform utilizing IIS, you may run into a situation where, upon moving the uploaded file, anonymous web users . . . → Read More: fix 401.3 IIS WordPress PHP Upload

list all host headers iis

source: http://weblogs.asp.net/robmcm/archive/2005/10/04/426632.aspx

Option Explicit On Error Resume Next Dim objBaseNode, objChildNode Dim objBindings, intBindings Dim objFSO, objFile, strOutput ‘ get a base object Set objBaseNode = GetObject(“IIS://LOCALHOST/W3SVC”) Set objFSO = WScript.CreateObject(“Scripting.FileSystemObject”) Set objFile = objFSO.CreateTextFile(“HostHeaders.txt”) ‘ check if we have an error … If (Err.Number 0) Then ‘ … and output the error. strOutput = . . . → Read More: list all host headers iis

reinstall asp.net script

Here’s a reinstall asp.net script:

This example is for asp.net 4.0 on a 64 bit system, it stops IIS, uninstalls all versions of asp.net, reinstalls asp.net, then starts IIS: NET STOP IISADMIN /Y “C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe” -ua “C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe” -i NET START IISADMIN /Y pause

wordpress permalink fix broken permalinks howto step by step!

How to fix broken permalinks in wordpress. Fixes blank pages and non-working links.

My problem was that links like this would work:

http://brakertech.com/?wordpress-permalink-fix/ but links like this would not:

http://brakertech.com/wordpress-permalink-fix/

Basically i thought the apache mod rewrite rule was working, just not accounting for the question mark. However, after turning on heavy rewrite logging i . . . → Read More: wordpress permalink fix broken permalinks howto step by step!

Howto: Print Site IDs to File in IIS

First create a file called c:\listsites.vbs with the following content:

OPTION EXPLICIT DIM CRLF, TAB DIM strServer DIM objWebService TAB = CHR( 9 ) CRLF = CHR( 13 ) & CHR( 10 ) IF WScript.Arguments.Length = 1 THEN strServer = WScript.Arguments( 0 ) ELSE strServer = “localhost” END IF WScript.Echo “Enumerating websites on ” & . . . → Read More: Howto: Print Site IDs to File in IIS