서버 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년 전
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6130 |
gender
|
12년 전 | 1075 | |
| 6129 | 12년 전 | 1316 | ||
| 6128 |
|
12년 전 | 3458 | |
| 6127 | 12년 전 | 692 | ||
| 6126 |
|
12년 전 | 2199 | |
| 6125 |
|
12년 전 | 4878 | |
| 6124 | 12년 전 | 652 | ||
| 6123 | 12년 전 | 3836 | ||
| 6122 | 12년 전 | 1016 | ||
| 6121 | 12년 전 | 3747 | ||
| 6120 | 12년 전 | 904 | ||
| 6119 | 12년 전 | 1767 | ||
| 6118 | 12년 전 | 922 | ||
| 6117 | 12년 전 | 2146 | ||
| 6116 | 12년 전 | 7932 | ||
| 6115 | 12년 전 | 1916 | ||
| 6114 |
|
12년 전 | 1702 | |
| 6113 | 12년 전 | 1520 | ||
| 6112 | 12년 전 | 588 | ||
| 6111 | 12년 전 | 2103 | ||
| 6110 | 12년 전 | 1842 | ||
| 6109 | 12년 전 | 632 | ||
| 6108 | 12년 전 | 1196 | ||
| 6107 | 12년 전 | 615 | ||
| 6106 | 12년 전 | 899 | ||
| 6105 | 12년 전 | 1184 | ||
| 6104 | 12년 전 | 3575 | ||
| 6103 | 12년 전 | 2111 | ||
| 6102 | 12년 전 | 2300 | ||
| 6101 | 12년 전 | 3667 | ||
| 6100 | 12년 전 | 3476 | ||
| 6099 | 12년 전 | 3140 | ||
| 6098 | 12년 전 | 4015 | ||
| 6097 | 12년 전 | 1009 | ||
| 6096 | 12년 전 | 5974 | ||
| 6095 | 12년 전 | 1361 | ||
| 6094 | 12년 전 | 1216 | ||
| 6093 | 12년 전 | 3398 | ||
| 6092 | 12년 전 | 3033 | ||
| 6091 | 12년 전 | 5184 | ||
| 6090 | 12년 전 | 2697 | ||
| 6089 | 12년 전 | 3324 | ||
| 6088 | 12년 전 | 1011 | ||
| 6087 | 12년 전 | 840 | ||
| 6086 | 12년 전 | 2015 | ||
| 6085 |
|
12년 전 | 805 | |
| 6084 |
웹디자인되고파
|
12년 전 | 2213 | |
| 6083 | 12년 전 | 1502 | ||
| 6082 | 12년 전 | 1100 | ||
| 6081 | 12년 전 | 2095 | ||
| 6080 |
Stiven
|
12년 전 | 2308 | |
| 6079 |
프로프리랜서
|
12년 전 | 1310 | |
| 6078 |
프로프리랜서
|
12년 전 | 785 | |
| 6077 |
프로프리랜서
|
12년 전 | 1333 | |
| 6076 |
프로프리랜서
|
12년 전 | 823 | |
| 6075 |
프로프리랜서
|
12년 전 | 1210 | |
| 6074 | 12년 전 | 3851 | ||
| 6073 | 12년 전 | 3944 | ||
| 6072 | 12년 전 | 1369 | ||
| 6071 | 12년 전 | 6978 | ||
| 6070 | 12년 전 | 7559 | ||
| 6069 | 12년 전 | 2310 | ||
| 6068 | 12년 전 | 3864 | ||
| 6067 |
smwkd
|
12년 전 | 628 | |
| 6066 | 12년 전 | 3650 | ||
| 6065 | 12년 전 | 3477 | ||
| 6064 | 12년 전 | 2712 | ||
| 6063 | 12년 전 | 2819 | ||
| 6062 | 12년 전 | 2356 | ||
| 6061 | 12년 전 | 2267 | ||
| 6060 | 12년 전 | 5169 | ||
| 6059 | 12년 전 | 2798 | ||
| 6058 | 12년 전 | 3126 | ||
| 6057 | 12년 전 | 2253 | ||
| 6056 | 12년 전 | 6835 | ||
| 6055 | 12년 전 | 2574 | ||
| 6054 | 12년 전 | 3424 | ||
| 6053 | 12년 전 | 2318 | ||
| 6052 | 12년 전 | 4813 | ||
| 6051 | 12년 전 | 3692 | ||
| 6050 | 12년 전 | 2550 | ||
| 6049 | 12년 전 | 2230 | ||
| 6048 |
|
12년 전 | 1285 | |
| 6047 | 12년 전 | 3426 | ||
| 6046 | 12년 전 | 4085 | ||
| 6045 | 12년 전 | 3450 | ||
| 6044 | 12년 전 | 5327 | ||
| 6043 | 12년 전 | 1646 | ||
| 6042 | 12년 전 | 1267 | ||
| 6041 | 12년 전 | 5161 | ||
| 6040 | 12년 전 | 935 | ||
| 6039 | 12년 전 | 3401 | ||
| 6038 | 12년 전 | 3403 | ||
| 6037 | 12년 전 | 2989 | ||
| 6036 | 12년 전 | 3340 | ||
| 6035 | 12년 전 | 2862 | ||
| 6034 | 12년 전 | 2842 | ||
| 6033 | 12년 전 | 2863 | ||
| 6032 | 12년 전 | 2854 | ||
| 6031 | 12년 전 | 2874 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기