PowerShell/demos/Apache
2020-05-07 17:00:30 +05:00
..
Apache Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
apache-demo.ps1 Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
readme.md Add DSC demo. Bugfix Apache and SystemD demo. (#1814) 2016-08-17 12:07:12 -07:00

Apache Management Demo

This demo shows management of Apache HTTP Server with PowerShell cmdlets implemented in a script module.

  • Get-ApacheVHost: Enumerate configured Apache Virtual Host (website) instances as objects.
  • Get-ApacheModule: Enumerate loaded Apache modules
  • Restart-ApacheHTTPserver: Restart the Apache web server
  • New-ApacheVHost: Create a new Apache Virtual Host (website) based on supplied parameters

Prerequisites

  • Install PowerShell
  • Install Apache packages
    • sudo apt-get install apache2
    • sudo yum install httpd

Note: Management of Apache requires privileges. The user must have authorization to elevate with sudo. You will be prompted for a sudo password when running the demo.