[질문????] 2차 도메인 DocumentRoot
centos 5 버전을 설치 중입니다. (산넘고 산이네요...)
vovo.abc.co.kr 이 자꾸 아파치 주소만 찾는데 어떻게 해야 하나요?
serial 번호를 수정 하고 named stop 하고 start 했는데...똑같이
아파치 주소만 나오는데...고수님 좋은 답변 좀 부탁 드려요?
(/usr/local/server/apache/htdocs)
#/usr/local/server/apache/conf/extra/httpd-vhosts.conf
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
#
ServerAdmin master@abc.co.kr
DocumentRoot /usr/local/server/apache/htdocs
ServerName abc.co.kr
ServerAlias www.abc.co.kr
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
ServerAdmin master@abc.co.kr DocumentRoot /home/vovo/public_html ServerName vovo.abc.co.kr ServerAlias vovo.abc.co.kr ErrorLog logs/dummy-host2.example.com-error_log CustomLog logs/dummy-host2.example.com-access_log common
# abc.co.kr.zone
$TTL 600
@ IN SOA ns.abc.co.kr. master@abc.co.kr. (
2008011705 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
600 ) ; minimum
IN NS ns.abc.co.kr.
IN MX 10 mail.abc.co.kr.
@ IN A 111.112.113.14
www IN A 111.112.113.14
* IN A 111.112.113.14
# /etc/named.rfc1912.zones
zone "113.112.111.in-addr.arpa" IN {
type master;
file "abc.co.kr.rev";
allow-update { none; };
};
zone "abc.co.kr" IN {
type master;
file "abc.co.kr.zone";
allow-update { none; };
};
# /usr/local/server/apache/bin/httpd -S
VirtualHost configuration:
Syntax OK
라고 나옵니다.
#cp /usr/local/server/apache/bin/apache/bin/apachectl /etc/init.d/httpd
# chkconfig --list | grep httpd
httpd 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성
/usr/local/server/apache/conf/extra/httpd-userdir.conf
# Settings for user home directories
#
# Required module: mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir public_html
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Order allow,deny
Allow from all
Order deny,allow
Deny from all
모가 문제 인가요?


댓글 달기