giochicchiando ora funziona parzialmente IIS ne sito predefinito.
Ecco la configurazione che ho usato , anche se le istruzioni dicono di abilitare o l'accesso anomino o quello built-in di Win
Ora al lancio dei file asp con 127.0.0.1/file_asp.asp
non danno problemi,
ma il lancio del sito di default http://127.0.0.1/ da questo errore:
"Si è verificato un problema a livello della pagina che si desidera visualizzare che ne impedisce la visualizzazione"
in particolare:
Tipo di errore:
Errore di run-time di Microsoft VBScript (0x800A0046)
Autorizzazione negata: 'GetObject'
/localstart.asp, line 40
dove ho segnato la riga 39...
Codice PHP:
sServername = LCase(Request.ServerVariables("SERVER_NAME"))
sServerinst = Request.ServerVariables("INSTANCE_ID")
sPhyspath = LCase(Request.ServerVariables("APPL_PHYSICAL_PATH"))
sServerVersion = LCase(Request.ServerVariables("SERVER_SOFTWARE"))
sServerIP = LCase(Request.ServerVariables("LOCAL_ADDR")) ' Server's IP address
sRemoteIP = LCase(Request.ServerVariables("REMOTE_ADDR")) ' Client's IP address
' If the querystring variable uc <> 1, and the user is browsing from the server machine,
' go ahead and show them localstart.asp. We don't want localstart.asp shown to outside users.
If Not (sServername = "localhost" Or sServerIP = sRemoteIP) Then
Response.Redirect "iisstart.asp"
Else
' Using ADSI, get the list of default documents for this Web site.
sPath = "IIS://" & sServername & "/W3SVC/" & sServerinst
'questa e' la riga 39
Set oDefSite = GetObject(sPath)
sDefDoc = LCase(oDefSite.DefaultDoc)
aDefDocs = split(sDefDoc, ",")
' Make sure at least one of them is valid.
Set oFS = CreateObject("Scripting.FileSystemObject")
(non ho modificato nessun file di default)