Forked from jstangroome/Configuration-CombinedWebServer.ps1
Created
January 25, 2014 14:48
-
-
Save sunnyc7/8617486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration AspNet45WebServer { | |
WindowsFeature WebAspNet45 { | |
Name = 'Web-Asp-Net45' | |
Ensure = 'Present' | |
} | |
WindowsFeature WebWindowsAuth { | |
Name = 'Web-Windows-Auth' | |
Ensure = 'Present' | |
} | |
} | |
Configuration AspClassicWebServer { | |
param ($EnsureBasicAuth) | |
WindowsFeature WebAsp { | |
Name = 'Web-ASP' | |
Ensure = 'Present' | |
} | |
WindowsFeature WebBasicAuth { | |
Name = 'Web-Basic-Auth' | |
Ensure = $EnsureBasicAuth | |
} | |
} | |
Configuration CombinedWebServer { | |
Node localhost { | |
AspNet45WebServer aspnet45 {} | |
AspClassicWebServer classic { | |
EnsureBasicAuth = 'Present' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment