PDA

View Full Version : Set up the host on all the IP addresses of the server


The Wishmaster
09-14-2012, 03:47 AM
Enable the host on all IP addresses. For example

#!/bin/sh
sed -e 's/111.37.146.88/*/g' /etc/httpd/conf/httpd.conf > /etc/httpd/conf/httpd.conf.1
mv -f /etc/httpd/conf/httpd.conf.1 /etc/httpd/conf/httpd.conf
/sbin/service httpd reload