Apache
 
 
review httpd use configuration file
 
 
[root@aa-test-01 proc]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   dummy-host.example.com (/etc/httpd/conf.d/host.conf:1)
Syntax OK
[root@aa-test-01 proc]#
 
 
configuration check
 
[root@aa-test-01 proc]# apachectl -t
Syntax OK
[root@aa-test-01 proc]#
 
 
 
httpd error
 
 
[root@aa-syslog-01 log]# service httpd restart
Stopping httpd:                                            [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for aa-syslog-01.puppet.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [ OK ]
 
 
[root@aa-syslog-01 conf]# vim httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
[root@aa-syslog-01 conf]# service httpd restart
Stopping httpd:                                            [ OK ]
Starting httpd:                                            [ OK ]