Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rattletat/05e7e205619d347d45367cb3a2497459 to your computer and use it in GitHub Desktop.
Save rattletat/05e7e205619d347d45367cb3a2497459 to your computer and use it in GitHub Desktop.
PORTCFG=/usr/local/apache2/conf/extra/ports.conf
sed -i 's# 80^# 8080#' ${PORTCFG}
sed -i 's# 443 https# 8443 https#' ${PORTCFG}
kill -HUP $(pidof httpd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment