서버 Apache/2.0.55 (Ubuntu) 입니다.
/etc/apache2/apache2.conf 에 httpd.conf,port.conf등을 인클루드하는 형태로 설정을 잡더군요.
질문의 요지는 하나의 ip:80 포트만 사용하여 두개의 도메인을 각각 다른 경로에 세팅해주는 방법입니다.
----------------------------------------
설정 파일가운데 호스트 관련 부분은 아래 내용이 전부입니다.
/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>
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>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
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>
</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>
댓글 5개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6330 |
|
12년 전 | 1801 | |
| 6329 |
내가짱니네가짱
|
12년 전 | 1228 | |
| 6328 |
AMDbest
|
12년 전 | 492 | |
| 6327 | 12년 전 | 1706 | ||
| 6326 | 12년 전 | 1337 | ||
| 6325 | 12년 전 | 7623 | ||
| 6324 |
AMDbest
|
12년 전 | 2205 | |
| 6323 |
|
12년 전 | 1977 | |
| 6322 | 12년 전 | 2039 | ||
| 6321 | 12년 전 | 2487 | ||
| 6320 |
senseme
|
12년 전 | 592 | |
| 6319 | 12년 전 | 3735 | ||
| 6318 | 12년 전 | 1385 | ||
| 6317 |
kiplayer
|
12년 전 | 6418 | |
| 6316 | 12년 전 | 1019 | ||
| 6315 | 12년 전 | 975 | ||
| 6314 |
상엽나르도
|
12년 전 | 1286 | |
| 6313 |
검은고양이1983
|
12년 전 | 656 | |
| 6312 | 12년 전 | 3118 | ||
| 6311 | 12년 전 | 1415 | ||
| 6310 |
testers
|
12년 전 | 1484 | |
| 6309 | 12년 전 | 988 | ||
| 6308 | 12년 전 | 2605 | ||
| 6307 | 12년 전 | 1656 | ||
| 6306 | 12년 전 | 438 | ||
| 6305 | 12년 전 | 3501 | ||
| 6304 | 12년 전 | 999 | ||
| 6303 | 12년 전 | 825 | ||
| 6302 | 12년 전 | 1191 | ||
| 6301 | 12년 전 | 5570 | ||
| 6300 |
|
12년 전 | 1201 | |
| 6299 |
AMDbest
|
12년 전 | 2807 | |
| 6298 |
AMDbest
|
12년 전 | 2250 | |
| 6297 |
프리랜서개발자
|
12년 전 | 477 | |
| 6296 | 12년 전 | 2937 | ||
| 6295 |
SUPERMANs
|
12년 전 | 1386 | |
| 6294 | 12년 전 | 1293 | ||
| 6293 | 12년 전 | 1346 | ||
| 6292 |
오늘도망했다
|
12년 전 | 3272 | |
| 6291 |
senseme
|
12년 전 | 2032 | |
| 6290 |
senseme
|
12년 전 | 3689 | |
| 6289 |
senseme
|
12년 전 | 8581 | |
| 6288 |
senseme
|
12년 전 | 4173 | |
| 6287 |
senseme
|
12년 전 | 3746 | |
| 6286 |
senseme
|
12년 전 | 1365 | |
| 6285 |
senseme
|
12년 전 | 1439 | |
| 6284 |
프로프리랜서
|
12년 전 | 3160 | |
| 6283 |
프로프리랜서
|
12년 전 | 3993 | |
| 6282 |
프로프리랜서
|
12년 전 | 4398 | |
| 6281 |
프로프리랜서
|
12년 전 | 1607 | |
| 6280 | 12년 전 | 1292 | ||
| 6279 |
AMDbest
|
12년 전 | 881 | |
| 6278 | 12년 전 | 982 | ||
| 6277 |
senseme
|
12년 전 | 2721 | |
| 6276 |
senseme
|
12년 전 | 2736 | |
| 6275 |
senseme
|
12년 전 | 1261 | |
| 6274 |
|
12년 전 | 2806 | |
| 6273 | 12년 전 | 1279 | ||
| 6272 | 12년 전 | 8463 | ||
| 6271 |
senseme
|
12년 전 | 1513 | |
| 6270 |
senseme
|
12년 전 | 3772 | |
| 6269 |
senseme
|
12년 전 | 6381 | |
| 6268 |
senseme
|
12년 전 | 1565 | |
| 6267 | 12년 전 | 2844 | ||
| 6266 | 12년 전 | 580 | ||
| 6265 | 12년 전 | 1302 | ||
| 6264 | 12년 전 | 1160 | ||
| 6263 |
senseme
|
12년 전 | 1321 | |
| 6262 |
senseme
|
12년 전 | 3315 | |
| 6261 |
senseme
|
12년 전 | 1090 | |
| 6260 |
senseme
|
12년 전 | 1830 | |
| 6259 |
senseme
|
12년 전 | 1260 | |
| 6258 |
senseme
|
12년 전 | 919 | |
| 6257 | 12년 전 | 1408 | ||
| 6256 | 12년 전 | 2103 | ||
| 6255 |
senseme
|
12년 전 | 1383 | |
| 6254 |
senseme
|
12년 전 | 1269 | |
| 6253 |
senseme
|
12년 전 | 1789 | |
| 6252 |
kiplayer
|
12년 전 | 14781 | |
| 6251 | 12년 전 | 1073 | ||
| 6250 | 12년 전 | 871 | ||
| 6249 | 12년 전 | 2729 | ||
| 6248 |
senseme
|
12년 전 | 8968 | |
| 6247 | 12년 전 | 1291 | ||
| 6246 |
프로프리랜서
|
12년 전 | 1170 | |
| 6245 |
프로프리랜서
|
12년 전 | 1628 | |
| 6244 |
프로프리랜서
|
12년 전 | 1131 | |
| 6243 |
프로프리랜서
|
12년 전 | 1262 | |
| 6242 |
프로프리랜서
|
12년 전 | 3553 | |
| 6241 |
프로프리랜서
|
12년 전 | 1457 | |
| 6240 |
프로프리랜서
|
12년 전 | 2126 | |
| 6239 |
softhead
|
12년 전 | 1145 | |
| 6238 |
senseme
|
12년 전 | 1313 | |
| 6237 |
senseme
|
12년 전 | 3029 | |
| 6236 | 12년 전 | 876 | ||
| 6235 | 12년 전 | 1345 | ||
| 6234 | 12년 전 | 1605 | ||
| 6233 | 12년 전 | 2036 | ||
| 6232 | 12년 전 | 2141 | ||
| 6231 | 12년 전 | 2567 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기