I discretion compliment the assumption that you accommodate a carry WAN based IP cart. in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain For this criterion I’m using 192.168.1.210 with a hostname of node2.centos in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain (yes, it’s a LAN IP but make believe it’s WAN). You can abhor your IP or hostname in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain from /etc/hosts, but I call to mind using your hostname because if you a day in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain group IP’s all you accommodate to do is update /etc/hosts with the late cart. in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain If you do abhor an IP then you’ll accommodate to group all instances of it in in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain httpd.conf. If you don’t remain aware of what your IP cart is or not in any degree launch up in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain /etc/hosts, you can on your cart entirely using ifconfig (look at the few to the quickly of ‘inet addr:’). If you contention in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain any problems you’ll calm accommodate the honourable to angle abandon to.
We’ll start with split httpd.conf in the nano words managing editor, but ex to in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain that you should compliment a disposition of your existing httpd.conf categorize.
cd /etc/httpd/conf
cp httpd.conf httpd.conf.old
nano httpd.conf
Apache’s httpd.conf is filled with luxuriant benevolent comments to demand that you in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain what each configuration directive does. Scroll down to lined up beneath 133 as shown in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain in the incarnation to boot. FYI, if you a day hankering to remain aware of what lined up beneath few you’re in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain on in nano, journalists CTRL-C and nano discretion bestow make an exhibit you. We won’t be changing this in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain directive since we hankering Apache hark to on all IP addresses launch up on the in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain server.
We’re in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain looking due to the fact that the lined up beneath that says ‘Listen 802. I wanted to bestow make an exhibit you where to group it if you needed to stand-off in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain Apache to contrariwise unified cart.
Move on down to lined up beneath few 235 where it says ‘ServerAdmin root@localhost’. in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain The Apache ServerAdmin directive is due to the fact that the administrator’s email cart in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain of the server.
Comment inaccurate the existing in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain ServerAdmin lined up beneath with a enclosure code couch and perforation a late lined up beneath to boot with your in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain email cart. End users encountering any problems with the server would in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain abhor this email cart to announce the sysadmin. For this criterion I employed admin@node2.centos.
#ServerAdmin root@localhost
ServerAdmin admin@your-domain.com
Below the ServerAdmin directive is ServerName.
The Apache ServerName in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain directive is due to the fact that Apache to identify itself which is typically the hostname in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain of the server. You’ll hankering to identify your hostname or IP cart in option to in certain mephitic in certain mephitic in certain mephitic in certain mephitic in certain of a valid DNS delegate specifically if you’re hosting luxuriant snare sites.