HOME > 게시판 > 자유게시판
게시판| 자유게시판
※ 게시판 용도에 맞지 않는 글(광고및 홍보 글 등)은 임의삭제될 수 있습니다.

 
작성일 : 06-04-13 16:36
리눅스 + 아파치 서버 외부접속 문제
 글쓴이 : 성종선
조회 : 2,463  

설치는 잘 된 것 같은데 외부 컴퓨터에서 아이피로 접속하려 하면

(예: http://59.150.42.225:8080 ) 페이지를 표시할 수 없다는

익숙한 에러 메세지가 나옵니다. ㅠ,.ㅜ

http://59.150.42.225:80

http://59.150.42.225:8080

http://59.150.42.225

셋다 안됩니다. -_-;

RedHat 9 에 아파치 httpd-2.0.55 버젼 설치했습니다.

ps -ef | grep httpd 명령 쳐보면

[root@localhost bin]# ps -ef | grep httpd
root     28054     1  0 16:09 ?        00:00:00 /www/bin/httpd -k start
nobody   28055 28054  0 16:09 ?        00:00:00 [httpd]
nobody   28056 28054  0 16:09 ?        00:00:00 [httpd]
nobody   28057 28054  0 16:09 ?        00:00:00 [httpd]
nobody   28058 28054  0 16:09 ?        00:00:00 [httpd]
nobody   28059 28054  0 16:09 ?        00:00:00 [httpd]
root     28201 17416  0 16:09 pts/4    00:00:00 grep httpd
이렇게 나옵니다. (잘 깔린 것 같습니다....-_-;;)

여기서 다시한번 스타트 명령 해보면

[root@localhost bin]# ./apachectl start
httpd (pid 27105) already running

이미 실행되어 있다고 나옵니다.

/www/conf/httpd.conf 보면

ServerName 59.150.42.225
서버네임 위처럼 넣었고,

DocumentRoot "/www/htdocs"

루트 디렉토리는 저곳으로 되어있고 들어가 보면

[root@localhost htdocs]# pwd
/www/htdocs
[root@localhost htdocs]# ls
apache_pb.gif            index.html.dk            index.html.hr.iso8859-2   index.html.po.iso8859-2  index.html.sv
apache_pb.png            index.html.ee            index.html.it             index.html.pt            index.html.var
apache_pb2.gif           index.html.el            index.html.ja.iso2022-jp  index.html.pt-br         index.html.zh-cn.gb2312
apache_pb2.png           index.html.en            index.html.ko.euc-kr      index.html.ru.cp-1251    index.html.zh-tw.big5
apache_pb2_ani.gif       index.html.es            index.html.lb.utf8        index.html.ru.cp866
index.html.ca            index.html.et            index.html.nl             index.html.ru.iso-ru
index.html.cz.iso8859-2  index.html.fr            index.html.nn             index.html.ru.koi8-r
index.html.de            index.html.he.iso8859-8  index.html.no             index.html.ru.utf8
[root@localhost htdocs]#

index.html 있습니다.

디렉토리 인덱스는 아래와 같이 되어 있습니다

DirectoryIndex index.html index.html.var

방화벽 문제인가 싶어서

iptables -F 도 해봤고 열린 포트 확인도 해 봤습니다.

[root@localhost htdocs]# netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     
tcp        0      0 0.0.0.0:32768           0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:32769         0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:15011           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:32772           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:15015           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:15016           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:15019           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:1521            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:2100            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:15002           0.0.0.0:*               LISTEN     
[root@localhost htdocs]#

[root@localhost htdocs]# netstat -na | grep 59.150.42.225
tcp        0      0 59.150.42.225:23249     222.235.64.133:15011    TIME_WAIT  
tcp        0      0 59.150.42.225:23262     222.235.64.133:15011    TIME_WAIT  
tcp        0      0 59.150.42.225:23237     222.235.64.133:15011    TIME_WAIT  
tcp        0      0 59.150.42.225:23275     222.235.64.133:15011    TIME_WAIT  
tcp        0      0 59.150.42.225:23224     222.235.64.133:15011    TIME_WAIT  
tcp        0      0 59.150.42.225:23212     222.235.64.133:15011    TIME_WAIT  
tcp        0      0 59.150.42.225:1521      59.150.42.225:18605     ESTABLISHED
tcp        0      0 59.150.42.225:1521      59.150.42.225:18604     ESTABLISHED
tcp        0      0 59.150.42.225:23213     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23208     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23225     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23219     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23276     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23270     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23245     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23238     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23232     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23263     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23257     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:23250     59.150.42.225:1521      TIME_WAIT  
tcp        0      0 59.150.42.225:1521      59.150.42.225:18603     ESTABLISHED
tcp        0      0 59.150.42.225:1521      59.150.42.225:18602     ESTABLISHED
tcp        0      0 59.150.42.225:18604     59.150.42.225:1521      ESTABLISHED
tcp        0      0 59.150.42.225:18605     59.150.42.225:1521      ESTABLISHED
tcp        0      0 59.150.42.225:18602     59.150.42.225:1521      ESTABLISHED
tcp        0      0 59.150.42.225:18603     59.150.42.225:1521      ESTABLISHED
tcp        0      0 59.150.42.225:22        211.44.144.234:2972     ESTABLISHED
tcp        0     48 59.150.42.225:22        211.44.144.234:4606     ESTABLISHED
udp        0      0 59.150.42.225:123       0.0.0.0:*                          
[root@localhost htdocs]#

혹시나 해서 ping 쏴 봤는데

ping  -t  59.150.42.225 쏘면

계속 리퀘스트 타임드 아웃 나옵니다. (ping은 여기서 상관없나요? ㅠ,.ㅜ)


이 글을 트위터로 보내기 이 글을 페이스북으로 보내기