아파치 VirtualHost 설정법

APM에 있던 hosts.conf 안의 내용임

 


 

#
# Apache Virtual Hosting
#
# 아래의 강좌를 참고하여 주십시오!
#
# 자신의 컴퓨터에 두개의 도메인을 물려보자 ^^*
# -  http://www.apmsetup.com/Tutorials/?act=view&id=17
#
# Windows 2000 Server DNS 세팅과 Apache Virtual Hosting 세팅
# -  http://www.apmsetup.com/Tutorials/?act=view&id=16
#
#
# 자신의 IP 를 입력해 주셔욤..
# 또는 * 으로 표시하십시오!
#NameVirtualHost 211.208.16.46

#

#

# okstart.dnip.net 호스트 설정
#<VirtualHost okstart.dnip.net>
    # 서버 이름입니다.
#    ServerName okstart.dnip.net
    # 이멜 주소를 입력하셔욤
#    ServerAdmin okstart@okstart.pe.kr
    # 홈디렉토리 위치를 기입해 주셔욤
#    DocumentRoot C:/APM_Setup/htdocs/okstart.dnip.net
    # 로그를 남기고 싶으시면.. 아래 처럼..
    # Log Files
#    CustomLog C:/APM_Setup/Server/Apache/logs/okstart.dnip.net_access_log combined
#    ErrorLog C:/APM_Setup/Server/Apache/logs/okstart.dnip.net_error_log
#</VirtualHost>

# okstartweb.dnip.net 호스트 설정
#<VirtualHost okstartweb.dnip.net>
#    ServerName okstartweb.dnip.net
#    ServerAdmin okstart@okstart.pe.kr
#    DocumentRoot C:/APM_Setup/htdocs/okstartweb.dnip.net
    # Log Files
#    CustomLog C:/APM_Setup/Server/Apache/logs/okstartweb.dnip.net_access_log combined
#    ErrorLog C:/APM_Setup/Server/Apache/logs/okstartweb.dnip.net_error_log
#</VirtualHost>

# 위의 예는 ping okstart.dnip.net , ping okstartweb.dnip.net 을 했을때
# 위의 IP(자신의 컴퓨터 IP) 211.208.16.46 로 인식되어야 동작 합니다.


 

### Section 3: Virtual Hosts
#
# VirtualHost: 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://www.apache.org/docs/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 *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
목록형 📷 갤러리형
제목
[기본형] HTML (with 부트스트랩5.3 , jquery 3.7, vue.js)
유용한 리눅스(LINUX) 명령어
[공지] 기술 게시판
4.28
4.29
4.30
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
5.10
5.11
5.12
5.13
5.14
5.15
5.16
5.17
5.18
5.19
5.20
5.21
5.22
5.23
5.24
5.25
5.26
5.27
5.28
5.29
5.30
5.31
6.1