서버 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년 전
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4129 | ||
| 429 | 19년 전 | 3324 | ||
| 428 | 19년 전 | 4144 | ||
| 427 | 19년 전 | 3493 | ||
| 426 | 19년 전 | 3119 | ||
| 425 | 19년 전 | 3430 | ||
| 424 | 19년 전 | 2452 | ||
| 423 | 19년 전 | 2881 | ||
| 422 | 19년 전 | 2372 | ||
| 421 | 19년 전 | 3723 | ||
| 420 | 19년 전 | 4755 | ||
| 419 | 19년 전 | 3831 | ||
| 418 |
|
19년 전 | 1766 | |
| 417 | 19년 전 | 2764 | ||
| 416 | 19년 전 | 2410 | ||
| 415 | 19년 전 | 2614 | ||
| 414 | 19년 전 | 4430 | ||
| 413 |
|
19년 전 | 2623 | |
| 412 | 19년 전 | 3065 | ||
| 411 |
|
19년 전 | 3002 | |
| 410 |
|
19년 전 | 3710 | |
| 409 |
|
19년 전 | 3652 | |
| 408 |
|
19년 전 | 1872 | |
| 407 | 19년 전 | 2244 | ||
| 406 | 19년 전 | 2811 | ||
| 405 | 19년 전 | 2476 | ||
| 404 | 19년 전 | 4323 | ||
| 403 | 19년 전 | 3315 | ||
| 402 |
NeoGenesis
|
19년 전 | 4111 | |
| 401 | 19년 전 | 2621 | ||
| 400 |
|
19년 전 | 2526 | |
| 399 | 19년 전 | 2979 | ||
| 398 | 19년 전 | 2511 | ||
| 397 | 19년 전 | 2806 | ||
| 396 | 19년 전 | 2510 | ||
| 395 | 19년 전 | 3218 | ||
| 394 | 19년 전 | 1761 | ||
| 393 | 19년 전 | 3012 | ||
| 392 | 19년 전 | 2291 | ||
| 391 | 19년 전 | 2192 | ||
| 390 | 19년 전 | 2302 | ||
| 389 | 19년 전 | 2663 | ||
| 388 | 19년 전 | 2211 | ||
| 387 | 19년 전 | 4495 | ||
| 386 |
|
19년 전 | 2703 | |
| 385 |
|
19년 전 | 2511 | |
| 384 | 19년 전 | 3051 | ||
| 383 | 19년 전 | 3078 | ||
| 382 | 19년 전 | 3124 | ||
| 381 |
|
19년 전 | 2650 | |
| 380 |
|
19년 전 | 3034 | |
| 379 | 19년 전 | 2560 | ||
| 378 | 19년 전 | 2232 | ||
| 377 | 19년 전 | 2793 | ||
| 376 | 19년 전 | 2480 | ||
| 375 |
|
19년 전 | 2577 | |
| 374 | 19년 전 | 3837 | ||
| 373 | 19년 전 | 3289 | ||
| 372 | 19년 전 | 5012 | ||
| 371 |
세은아빠2
|
19년 전 | 2433 | |
| 370 | 19년 전 | 4514 | ||
| 369 | 19년 전 | 3121 | ||
| 368 | 19년 전 | 2920 | ||
| 367 | 19년 전 | 3746 | ||
| 366 | 19년 전 | 2673 | ||
| 365 | 19년 전 | 3759 | ||
| 364 | 19년 전 | 4035 | ||
| 363 | 19년 전 | 3470 | ||
| 362 | 20년 전 | 3503 | ||
| 361 | 20년 전 | 4126 | ||
| 360 |
hwatta
|
20년 전 | 2382 | |
| 359 | 20년 전 | 5125 | ||
| 358 | 20년 전 | 3675 | ||
| 357 | 20년 전 | 2621 | ||
| 356 |
sdesign1s
|
20년 전 | 2300 | |
| 355 | 20년 전 | 2778 | ||
| 354 | 20년 전 | 3042 | ||
| 353 | 20년 전 | 2808 | ||
| 352 |
|
20년 전 | 5788 | |
| 351 |
|
20년 전 | 2725 | |
| 350 |
|
20년 전 | 4314 | |
| 349 |
hwatta
|
20년 전 | 2206 | |
| 348 | 20년 전 | 7322 | ||
| 347 | 20년 전 | 2427 | ||
| 346 | 20년 전 | 3523 | ||
| 345 | 20년 전 | 4327 | ||
| 344 | 20년 전 | 2673 | ||
| 343 | 20년 전 | 3937 | ||
| 342 | 20년 전 | 3082 | ||
| 341 | 20년 전 | 4113 | ||
| 340 |
|
20년 전 | 5170 | |
| 339 |
|
20년 전 | 4254 | |
| 338 | 20년 전 | 5898 | ||
| 337 | 20년 전 | 2060 | ||
| 336 |
|
20년 전 | 3352 | |
| 335 |
|
20년 전 | 3570 | |
| 334 |
|
20년 전 | 2964 | |
| 333 |
hwatta
|
20년 전 | 2469 | |
| 332 | 20년 전 | 4671 | ||
| 331 | 20년 전 | 2296 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기