0
강아지 리눅스에서 아파치를 설정하고 localhost에서 파일을 볼 수 있습니다. 그러나 포트 80을 열었을 때 아이폰에서 아파치에 연결하려고 시도했지만 실패했습니다. 나는 하얀 페이지 만 볼 수 있었다. 아마도 404 에러가 아니기 때문에 404가 아니었을 것이다. (포트를 열기 전에 나는 404를 보았다.)아파치 서버에 원격으로 연결할 수 없습니다
나는 모두에게 허용하도록 apache.conf를 구성했다.
액세스 로그와 오류 로그에 아무것도 표시되지 않았습니다.
이 iptables에-L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:domain
ACCEPT udp -- anywhere anywhere state NEW udp dpt:domain
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:finger
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:www
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:auth
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:imap2
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:443
ACCEPT udp -- anywhere anywhere state NEW udp dpt:syslog
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:printer
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:993
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:995
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:www
ACCEPT udp -- anywhere anywhere state NEW udp dpt:www
A CCEPT all -- anywhere anywhere state NEW
TRUSTED all -- anywhere anywhere state NEW
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP icmp -- anywhere anywhere state INVALID
Chain TRUSTED (1 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp echo-request
DROP icmp -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port- unreachable
Netstat와
tcp 0 0 192.168.100.100:80 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
가 어떻게이 문제를 해결합니까입니까?
답장을 보내 주셔서 감사합니다. 내 루터에 포트 80을 열었을 때, 나는 그 IP를 사용했기 때문에 사용해야한다고 생각했습니다. 그래서, 어떤 IP를 사용해야합니까? 당신은 말해 줄 수? – user3119018
내 대답을 다시 읽어 보시기 바랍니다. 나는 대답했다. – EJP
"listen0.0.0.:80"을 port.conf에 작성했지만 작동하지 않았습니다 .404 error.netstat는 "tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 9608/apache2 "다시 불편을 끼쳐 드려 죄송합니다. 어떻게 해결해야합니까? – user3119018