apache virtual host rename all *:80 *:443 httpd.conf
I needed to rename a bunch of apache virtual hosts to *:80 and *:443. Here’s an example that renames to httpd.confr and changes :80 and :443 to *:80 and *:443: # sed -ir ‘s/VirtualHost [0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}:80/VirtualHost *:80/’ # sed…