c1c5344a88
Based on standard practices, we need to have a copyright and license notice at the top of each source file. Removed existing copyrights and updated/added copyright notices for .h, .cpp, .cs, .ps1, and .psm1 files. Updated module manifests for consistency to have Author = "PowerShell" and Company = "Microsoft Corporation". Removed multiple line breaks. Separate PR coming to update contribution document for new source files: #6140 Manually reviewed each change. Fix #6073 |
||
---|---|---|
.. | ||
Apache | ||
apache-demo.ps1 | ||
readme.md |
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.