PowerShell/demos/apache.ps1

15 lines
529 B
PowerShell
Raw Normal View History

# Get-ApacheVHosts
# Enumerate configured virtual hosts (web sites) on an apache server
# New-ApacheVHost
# Given defined parameters, create a $ServerName.conf virtual host config file at $VHostsDirectory
# Get-ApacheModules
# List installed Apache Modules
# Demo execution:
# Run Get-ApacheVHosts and enumerate configured virtual hosts
# Run Get-ApacheModules to show installed Apache modules
# Run New-ApacheVHost to create a new virtual host and restart Apache
# Run Get-ApacheVhosts to show the newly created virtual host