Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ec2/userdata/userdata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# At the time of the script the Windows Servers on AWS was showing PowerShell 5.1 Desktop Edition
# $PSVersionTable

# If this script doesnt install apache on boot you will need to navigate to https://www.apachelounge.com/download/ > right click the newest download link > copy link address > replace the $downloadUrl with the copied link.
# To fix server not serving the webpage you need to add a rule in windows server filewall by running New-NetFirewallRule -DisplayName "Apache HTTP Inbound" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 80

# Define download URL for Apache HTTP Server (Update the URL to the latest version)
# https://www.apachelounge.com/download/
Expand Down Expand Up @@ -47,4 +49,5 @@ Start-Service -Name "Apache2.4"

# Optionally, use ApacheMonitor.exe to manage the Apache service
# Start-Process -FilePath $serviceMonitorPath
</powershell>

</powershell>