서버 Apache/2.0.55 (Ubuntu) 입니다.
/etc/apache2/apache2.conf 에 httpd.conf,port.conf등을 인클루드하는 형태로 설정을 잡더군요.
질문의 요지는 하나의 ip:80 포트만 사용하여 두개의 도메인을 각각 다른 경로에 세팅해주는 방법입니다.
----------------------------------------
설정 파일가운데 호스트 관련 부분은 아래 내용이 전부입니다.
/etc/apache2/sites-available/default
/etc/apache2/sites-available/default
NameVirtualHost *
<VirtualHost *>
ServerAdmin master@gaetgol.net
DocumentRoot /home
#SerName gaetgol.net
#ServerAlias www.gaetgol.net
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
<VirtualHost *>
ServerAdmin master@gaetgol.net
DocumentRoot /home
#SerName gaetgol.net
#ServerAlias www.gaetgol.net
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
----------------------------------------
# 사용자 디렉토리
/etc/apache2/mods-enabled/userdir.conf
<IfModule mod_userdir.c>
UserDir www
UserDir disabled root
<Directory /home/*/www>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
</IfModule>
/etc/apache2/mods-enabled/userdir.conf
<IfModule mod_userdir.c>
UserDir www
UserDir disabled root
<Directory /home/*/www>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
</IfModule>
댓글 1개
takumi22
12년 전
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5230 | 13년 전 | 3074 | ||
| 5229 | 13년 전 | 576 | ||
| 5228 | 13년 전 | 622 | ||
| 5227 | 13년 전 | 726 | ||
| 5226 | 13년 전 | 9181 | ||
| 5225 | 13년 전 | 2191 | ||
| 5224 | 13년 전 | 2606 | ||
| 5223 | 13년 전 | 2583 | ||
| 5222 | 13년 전 | 3147 | ||
| 5221 |
visualp
|
13년 전 | 726 | |
| 5220 |
|
13년 전 | 772 | |
| 5219 | 13년 전 | 4666 | ||
| 5218 |
|
13년 전 | 701 | |
| 5217 |
크라이스트
|
13년 전 | 1382 | |
| 5216 | 13년 전 | 1245 | ||
| 5215 | 13년 전 | 1262 | ||
| 5214 | 13년 전 | 1136 | ||
| 5213 | 13년 전 | 689 | ||
| 5212 | 13년 전 | 1367 | ||
| 5211 | 13년 전 | 758 | ||
| 5210 |
visualp
|
13년 전 | 1484 | |
| 5209 |
visualp
|
13년 전 | 1099 | |
| 5208 |
mammoth
|
13년 전 | 737 | |
| 5207 | 13년 전 | 2115 | ||
| 5206 | 13년 전 | 1091 | ||
| 5205 | 13년 전 | 699 | ||
| 5204 |
|
13년 전 | 2269 | |
| 5203 | 13년 전 | 1188 | ||
| 5202 | 13년 전 | 1214 | ||
| 5201 |
kastel
|
13년 전 | 1375 | |
| 5200 | 13년 전 | 1087 | ||
| 5199 | 13년 전 | 573 | ||
| 5198 | 13년 전 | 636 | ||
| 5197 | 13년 전 | 1572 | ||
| 5196 | 13년 전 | 788 | ||
| 5195 | 13년 전 | 1800 | ||
| 5194 | 13년 전 | 1300 | ||
| 5193 | 13년 전 | 617 | ||
| 5192 | 13년 전 | 4066 | ||
| 5191 | 13년 전 | 748 | ||
| 5190 |
|
13년 전 | 1863 | |
| 5189 | 13년 전 | 1202 | ||
| 5188 | 13년 전 | 1550 | ||
| 5187 |
믹스디자인
|
13년 전 | 817 | |
| 5186 |
|
13년 전 | 2392 | |
| 5185 | 13년 전 | 1434 | ||
| 5184 | 13년 전 | 897 | ||
| 5183 | 13년 전 | 1407 | ||
| 5182 | 13년 전 | 684 | ||
| 5181 | 13년 전 | 718 | ||
| 5180 |
프리온관리자
|
13년 전 | 718 | |
| 5179 | 13년 전 | 989 | ||
| 5178 | 13년 전 | 650 | ||
| 5177 | 13년 전 | 576 | ||
| 5176 | 13년 전 | 693 | ||
| 5175 | 13년 전 | 1427 | ||
| 5174 | 13년 전 | 872 | ||
| 5173 | 13년 전 | 605 | ||
| 5172 |
|
13년 전 | 578 | |
| 5171 | 13년 전 | 912 | ||
| 5170 |
KhanSu
|
13년 전 | 706 | |
| 5169 | 13년 전 | 2166 | ||
| 5168 | 13년 전 | 1493 | ||
| 5167 |
sir24
|
13년 전 | 687 | |
| 5166 | 13년 전 | 1753 | ||
| 5165 | 13년 전 | 736 | ||
| 5164 | 13년 전 | 1660 | ||
| 5163 |
|
13년 전 | 998 | |
| 5162 |
곰도리푸우
|
13년 전 | 4095 | |
| 5161 |
UltraUCC
|
13년 전 | 1231 | |
| 5160 |
|
13년 전 | 886 | |
| 5159 |
그런듯아닌듯
|
13년 전 | 545 | |
| 5158 |
|
13년 전 | 522 | |
| 5157 | 13년 전 | 1657 | ||
| 5156 | 13년 전 | 1163 | ||
| 5155 | 13년 전 | 2653 | ||
| 5154 | 13년 전 | 799 | ||
| 5153 | 13년 전 | 791 | ||
| 5152 |
|
13년 전 | 629 | |
| 5151 | 13년 전 | 836 | ||
| 5150 |
senseme
|
13년 전 | 562 | |
| 5149 |
워드앤코드
|
13년 전 | 1011 | |
| 5148 | 13년 전 | 707 | ||
| 5147 |
프로프리랜서
|
13년 전 | 908 | |
| 5146 | 13년 전 | 2403 | ||
| 5145 |
투코아미디어
|
13년 전 | 1505 | |
| 5144 |
there007
|
13년 전 | 1512 | |
| 5143 | 13년 전 | 1375 | ||
| 5142 | 13년 전 | 2095 | ||
| 5141 |
silky
|
13년 전 | 770 | |
| 5140 |
silky
|
13년 전 | 646 | |
| 5139 |
silky
|
13년 전 | 1986 | |
| 5138 |
silky
|
13년 전 | 588 | |
| 5137 |
silky
|
13년 전 | 616 | |
| 5136 |
silky
|
13년 전 | 898 | |
| 5135 |
silky
|
13년 전 | 623 | |
| 5134 |
silky
|
13년 전 | 478 | |
| 5133 |
|
13년 전 | 846 | |
| 5132 |
복이219
|
13년 전 | 977 | |
| 5131 |
바부바부팅이
|
13년 전 | 1020 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기