-----------------------------------------
답변자가 기본적으로 참고할 내용입니다.
- 배포판(옵션) :
- 커널버전(옵션)
:
- 데몬버전(예:apache
1.3.27) :
- 데몬설치유형(RPM/컴파일/기타)
:
-----------------------------------------
리눅스 서버를 구축해볼까 해서 래드햇 9.0 을 설치하고
이것저것 셋팅을 했습니다. 그런데 잘 되다가 httpd.conf 파일을
잠깐 만졌는데 홈페이지접속할때
다운 받아라고 계속 나오네요. 계정 가기고 있는 사람들
홈페이지도 마찬가지로 다운 받아라고 하네요.
밑에 보여 드리는 것이 제가 수정한 부분들입니다. 어케
고쳤는지도 모르겠어요...ㅡ.ㅡ
고수님들 명석한 한수 부탁 드립니다.
------ httpd.conf 의 수정한 부분입니다.. -------
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php-source .php .html .htm
AddType application/x-tar .tgz
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options"
directive.)
#
AddHandler cgi-script .cgi
------named.conf--------
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "nyang.pe.kr" IN {
type master;
file "nyang.zone";
allow-update { none; };
};
zone "71.66.220.in-addr.arpa" {
type master;
file "nyang.rev";
allow-update { none; };
};
include "/etc/rndc.key";
---------nyang.zone--------
$TTL 86400
@ IN SOA ns.nyang.pe.kr. root.nyang.pe.kr. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns.nyang.pe.kr.
IN A 220.66.71.64
IN MX 10 nyang.pe.kr.
ns IN A 220.66.71.64
www IN A 220.66.71.64
mail IN MX 220.66.71.64
roen IN A 220.66.71.64
* IN A 220.66.71.64
|