1) From command line type hostname to get your hostname. Example output might be example.com
2) Edit /etc/hosts and change the lines to match your hostname. Example:
127.0.0.1 localhost.localdomain localhost.localdomain localhost4
::1 localhost.localdomain localhost.localdomain localhost6
# smartflex
192.168.1.30 smartflex.co.kr
3) Open your httpd.conf file and make sure ServerName is defined. If it is not add ServerName example.com
4) Restart apache via command line apachectl -k graceful OR apachectl -k restart
'개발 > 서버' 카테고리의 다른 글
apache 디폴트 설정 (2) | 2014.12.09 |
---|---|
ssh scp remote file downloads (0) | 2014.12.08 |
php compile troubleshooting (3) | 2014.12.08 |
RPM 사용법 정리 (0) | 2013.06.14 |
nginx 구라에 속지말자 (0) | 2013.06.14 |