---------------------------------------------hosts.conf------------------------------------------------------------------------
123.456.78.9 abc.gg.gg
123.456.78.9 bbc.gg.gg
----------------------------------------------httpd.conf-----------------------------------------------------------------------
ServerName 123.456.78.9:80
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
-------------------------------------------httpd-vhosts.conf-------------------------------------------------------------------
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost 123.456.78.9: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 <VirtualHost> block.
#
<VirtualHost 123.456.78.9:80>
ServerAdmin yongsuk_@naver.com
DocumentRoot "/web/home/abc/html/"
ServerName abc.gg.gg
ServerAlias abc.gg.gg
ErrorLog "logs/dummy-host.example.com-error_log"
CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>
<VirtualHost 123.456.78.9:80>
ServerAdmin yongsuk_@naver.com
DocumentRoot "/web/home/bbc/html/"
ServerName bbc.gg.gg
ServerAlias bbc.gg.gg
ErrorLog "logs/dummy-host2.example.com-error_log"
CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>
---------------------------------------------------------------------------------------------------------
운영체제는 레드헷엔터프라이즈서버5쓰구있구요 아파치 php최신버전 설치했어요
제가 손댄건 이게 전부인데요 abc.gg.gg로 들어가나 bbc.gg.gg로 들어가나 /web/home/abc/html 를 불러옵니다
혹시 문제점이나 제가 더 손댈곳이 있는지 궁금합니다...몇일째쩔쩔매고있어요.....
답변부탁드립니다~
눈팅만으로는 답변글을 볼 수 없습니다. 로그인하셔야 합니다.
[한국리눅스유저그룹]의 글을 퍼가실때에는 반드시 [출처]를 표시해 주시는 센스가 필요합니다!
지금 이시간, 공부하고 있는 당신은 머지않아 최고가 될 것입니다. 즐겁게 공부하시고, 힘내십시오!
포스팅 글이 유용하셨다면 RSS를 구독하시면 됩니다.
유용하고, 좋은글 포스팅 바랍니다. 포스팅된 글은 (전세계)? 대부분의 소셜 사이트에 포스팅됩니다.