리눅스를 처음 공부하면서 httpd 를
실행하고자 했는데..
WOW LINUX PARAN 7.1 에서
1 . /etc/rc.d/init.d/httpd stop
Stopping httpd: [OK]
2 . /etc/rc.d/init.d/httpd start
3 . [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
1, 2 번과 같은 순서로 명령을 실행했더니 3번과 같은 메세지가 뜹니다.
Stopping httpd: [OK] 라는 걸로 보아 httpd 가 있긴 있는 것 같아서 /etc/httpd/conf/httpd.conf 파일
내용 중 ...
#
# ServerName: allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/) # anyway, and this will make redirections work
in a sensible way. #
#ServerName localhost
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
...
부분의 #ServerName localhost 를, 한텀 창에서 hostname 라고 쳐서 나온 결과인 LBS 를 사용해서, #Se
rverName LBS 로 바꾸어도 고쳐지지 않습니다. 제가 잘못 고친 건가요?
제 생각에도 #ServerName localhost 는 바꾸지 않아도 이 문제와는 상관없는 것 같습니다.