[아직도 답변못얻은] 네임서버 설정(버추얼 호스팅관련)???

익명 사용자의 이미지

[아직도 답변못얻은] 네임서버 설정(버추얼 호스팅관련)???

안녕하세요.

질문요지
===================
virtualhost 환경에서 네임서버가 인식을 못하는것 같은데 원인이 뭔지
요???
(url에 www.MYDOMAIN.co.kr, Neo.MYDOMAIN.co.kr 을 입력하면 화면에 안

오는데 원인이???)

[테스트 서버 환경]
=================
레드햇8.0
mysql-3.23.52

httpd-2.0.43
php-4.2.3
ZendOptimizer-2.0.3-Linux_glibc21-i386

저희 테스트 서버에서 가상호스팅을 설정하고, dns도 설정했습니다.
네임서버 데몬은 다음처럼 실행되어있더군요.
===================================
[root@ns tmp]# /etc/init.d/named start
[root@ns tmp]# running

아파치는 실행되어있고요.
===================================
[root@ns tmp]# apachectl start
httpd (pid 2044) already running

url 에 다음을 입력하면
============================
http//210.110.68.145/ 웹브라우저에서 내용이 제대로 인식되더군요.
=> 아파치는 제대로 작동되는 증거로 예상^^

url 에 MYDOMAIN.co.kr 을 입력하면
=================================
HTTP 404 - 파일을 찾을 수 없음 => 네임서버, 아니면 버추얼 호스트 설

에 문제가...예상...

home 의 퍼미션정보는
===================================
drwxr-xr-x 8 root root 4096 Dec 7 1411 home

home 아래의 각 계정의 디렉토리 퍼미션 정보는
===================================
drwx--x--x 2 alba alba 4096 Dec 7 1533 alba
drwx--x--x 2 MYDOMAIN MYDOMAIN 4096 Dec 7 1517 MYDOMAIN
drwx------ 2 root root 16384 Dec 3 2035 lost+found
drwx------ 2 mysql mysql 4096 Dec 4 1544 mysql
drwx--x--x 6 Neo Neo 4096 Dec 9 1452 Neo
drwx--x--x 2 won won 4096 Dec 7 1532 won

dns 설정은 정확히 했다고 생각됩니다.
======================================
1. nslookup 명령 테스트 => O.K.
2. 네임서버 설정후 네임서버에 네트워크로 연결된 클라이언트에서 테스
트 확인 완료

TCP/IP 등록정보의 네임서버에 방금 설치한 네임서버주소를 입력하고
(기존의 DNS 정보는 삭제후) 재부팅후
MS-DOS 창에서
ping www.MYDOMAIN.co.kr => O.K.
ping MYDOMAIN.co.kr => O.K.
ping Neo.MYDOMAIN.co.kr => O.K.
ping alba.MYDOMAIN.co.kr => O.K.
ping won.MYDOMAIN.co.kr => O.K.

[노정호님 의견]
httpd.conf 에서 BindAddress 또는 Listen 지시자가 활성화 되어 있는지
확인해보세요.
섹션 1 부분에 있습니다.
===================================================
httpd-2.0.43 의 httpd.conf 파일에는 BindAddress 가 없어요...
글구 BindAddress * 를 일부러 만들어 실행하면 syntax 오류 납니다.

[carpoo님 의견]
/home/MYDOMAIN 에 index 파일이 있는지 확인해보세요.
=============================================================
index파일은 정확히 있어요. url에다가... ip로 입력하면 index.php파일
의 내용이 보이니깐요

[아파치 설정파일에서 버추얼 호스트 설정부분]

NameVirtualHost 210.110.68.145

# ServerAdmin MYDOMAIN at MYDOMAIN.co.kr ServerName MYDOMAIN.co.kr ServerAlias www.MYDOMAIN.co.kr MYDOMAIN.co.kr DocumentRoot /home/MYDOMAIN # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common

# ServerAdmin Neo at MYDOMAIN.co.kr ServerName Neo.MYDOMAIN.co.kr DocumentRoot /home/Neo # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common

# ServerAdmin alba at MYDOMAIN.co.kr ServerName alba.MYDOMAIN.co.kr DocumentRoot /home/alba # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common

# ServerAdmin won at MYDOMAIN.co.kr ServerName won.MYDOMAIN.co.kr DocumentRoot /home/won # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common

==========================================
/etc/named.conf 파일 내용의 끝부분...
==========================================
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

include "/etc/rndc.key";

ZONE "68.110.210.in-addr.arpa" IN {
type master;
file "MYDOMAIN.rev";
};

zone "MYDOMAIN.co.kr" IN {
type master;
file "MYDOMAIN.zone";
};

zone "Neo.MYDOMAIN.co.kr" IN {
type master;
file "MYDOMAIN.zone";
};

zone "alba.MYDOMAIN.co.kr" IN {
type master;
file "MYDOMAIN.zone";
};

zone "won.MYDOMAIN.co.kr" IN {
Type master;
file "MYDOMAIN.zone";
};

익명 사용자의 이미지

혹시 실제로 서버를 돌리는게 아니라 ... 테스트용인가요?

그렇다면 네임서버를 자신의 컴퓨터로 설정하셨는지?

음.. 대충 설정은 맞는듯한데요?

익명 사용자의 이미지

혹시 실제로 서버를 돌리는게 아니라 ... 테스트용인가요?
========================================================
네 그렇습니다.

그렇다면 네임서버를 자신의 컴퓨터로 설정하셨는지?
====================================================
예 네임서버를 호스트명과 동일하게 했습니다.
실제로 hostname 명령어를 입력하면 결과가 ns.MYDOMAIN.co.kr 이 나옵니
다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.