Using the appcmd command you can view, add and delete default documents in IIS configuration.
View:
C:\> %SystemRoot%\system32\inetsrv\appcmd list config /section:system.webServer/defaultDocument
Add:
C:\> %SystemRoot%\system32\inetsrv\appcmd set config /section:system.webServer/defaultDocument /+files.[value='index.php']
Remove:
C:\> %SystemRoot%\system32\inetsrv\appcmd set config /section:system.webServer/defaultDocument /-files.[value='index.php']
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment