아파치 (Apache 2.0.4) lynx에서 접근 불가하네요.

andysheep의 이미지

아파치 설치하기 생각보다 힘드네요.

2.0.4 소스 받아 컴파일 해서 설치 한 후 계속 막히는 군요.

아파치 설치한 컴퓨터의 IP는 192.168.1.10입니다. 다른 컴퓨터와 ftp나 telnet은 문제없이 잘됩니다.

현재는 httpd 데몬 뜨면서 에러는 발생하지 않습니다.
단, lynx에서 http://192.168.1.10/ 시작하면

Looking up 192.168.1.10
Making HTTP connection to 192.168.1.10
Sending HTTP request.
<생략>
Alert!: Unexpected network read error; connection aborted.
Can't Access 'http://192.168.1.10/'
Alert!: Unable to access document.

lynx: Can't access startfile

모질라 실행시켜서 http://192.168.1.10/
을 치면 빈 페이지만 보이는 군요.

/usr/local/apache2/logs/error_log
파일에는 아무런 에러 메시지도 기록이 않됩니다.

httpd.conf 파일에서 설정이 잘못되있는 것 같은데,
시간은 급하고.

도움 주면 고맙겠군요.

지리즈의 이미지

telnet 호스트명 80
한다음

GET / HTTP/1.1
Host: foo.hostname.com

을 입력하고 어떤 결과가 나오는지 확인바랍니다.

There is no spoon. Neo from the Matrix 1999.

andysheep의 이미지

지리즈 wrote:
telnet 호스트명 80
한다음

GET / HTTP/1.1
Host: foo.hostname.com

을 입력하고 어떤 결과가 나오는지 확인바랍니다.

httpd.conf 파일에

Listen 80

로 되있습니다.

telnet 192.168.1.10 80
하면 httpd 살아있을 때는 telnet 로긴 안됩니다.

access_log 파일에

192.168.1.10 - - [09/Dec/2003:21:02:08 -0500] "GET / HTTP/1.1" 403 280

같은 메시지가 잔뜩 기록되어있습니다.

error_log 파일에는 에러 메시지 기록은 보이지 않군요.

httpd명의 사용자와, 그룹을 만든 후
http.conf 파일의

User, Group 설정에서
User httpd
Group httpd

바꾸었지만 여전히 홈페이지의 기본 파일은 볼 수가 없습니다.

apache.org랑 뉴스그룹 뒤져봐도 별다른 방법이 없고, httpd가 에러없이 동작하는 것을 봐서는 권한 설정만 해결되면 서버 동작에 이상이 없을 거라는 판단이 되는군요.

Devuan 1.0 (Debian without systemd)
amd64 station: AMD FX(tm)-6100 Six-Core Processor, 8 GB memory, 1 TB HDD
amd64 laptop: HP Touchsmart

글쇠판: 세벌 최종식, 콜맥 (Colemak)

지리즈의 이미지

1.일반 사용자계정으로 도큐먼트 루트에
들어갈 수 있는지 확인해 봅니다.
ex)
su - 루트가아닌계정
cd /var/www

2.
grep httpd /etc/passwd
grep httpd /etc/group
해서... httpd 계정과 그룹이 존제하는지 확인합니다.

3. 두가지다 이상이 없다면..
httpd.conf내에서
allow deny 등등의 옵션을 점검하여..
특정 ip대역 혹은 호스트로만의 접속을 허용하거나 차단하는 내용이 있는지 확인해 봅니다.

이래 저래 안돼면..
access.log와 httpd.conf파일을 여기에 올려 주시면...
오류를 찾는 것에 도움이 많이 되겠습니다.

There is no spoon. Neo from the Matrix 1999.

지리즈의 이미지

참고로 여러가지 서비스를 테스트할때...
telnet을 아주 요긴하게 사용할 수 있습니다.

만약 해당서버의 pop3서비스가 동작중인 것을 점검할 때는

telnet 해당서버주소 110
or
telnet 해당서버주소 pop3

해주면 됩니다.

[admin@ns admin]$ telnet localhost pop3
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 ns.xxxxx.co.kr v2001.78rh server ready

이런 식으로 나온다면... 정상적으로 pop3 가 동작중인 것을 확인 할 수 있지요...

telnet www.naver.com 80
Trying 211.218.150.200...
Connected to www.naver.com.
Escape character is '^]'.
GET / HTTP/1.1                              <----사용자가 입력하는 내용
Host: www.naver.com                  <----사용자가 입력하는 내용
(2~3회 엔터)
하면 소스가 쭉 솓아져 나옵니다.

꼭 텔넷서비스를 이용하기 위함이 아니라...
단순히 tcp 커넥션 테스트를 하기 위해서 사용합니다.
lynx나 mozilla 따위에서 테스트할 때는
http의 헤더정보를 직접 볼 수 없기 때문에...
이런 식으로 하면.. 구체적으로 서버가 어떤 이유로 에러를 내는지
알수가 있습니다.

[admin@ns admin]$ telnet localhost ssh
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_3.1p1
^]
telnet> quit
Connection closed.
[admin@ns admin]$ telnet localhost ftp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ProFTPD 1.2.8rc2 Server (ProFTPD Default Installation) [ns.xxxx.co.kr]
^]
telnet> quit
Connection closed.
[admin@ns admin]$ telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ns.xxxx.co.kr ESMTP Sendmail 8.11.6/8.11.6; Wed, 10 Dec 2003 14:19:59 +0900
^]
telnet> quit
Connection closed.
[admin@ns admin]$

There is no spoon. Neo from the Matrix 1999.

andysheep의 이미지

telenet 192.168.1.10 80

로긴해서 ^] 친후

지리즈님이 알려준 GET / HTTP 1.0
치면
html 소스가 화면에 주르륵 뜨고
접속 끊기네요.

소스의 끝 부분에
you don't have permission to access on this server
라는 내용이 있습니다.

네트워크 셋팅이 이상있나 싶어서, apache 1.3.6 rpm 패키지파일을 설치해서 돌려봤는데, apache 1.3.6은 잘 동작하네요.

--

2.0.48 소스로 설치하면 바로 실행되는 건가요?
현재로선 의문이 듭니다.

Devuan 1.0 (Debian without systemd)
amd64 station: AMD FX(tm)-6100 Six-Core Processor, 8 GB memory, 1 TB HDD
amd64 laptop: HP Touchsmart

글쇠판: 세벌 최종식, 콜맥 (Colemak)

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.