서버 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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6630 |
차가운바람
|
12년 전 | 1160 | |
| 6629 | 12년 전 | 1155 | ||
| 6628 |
put777
|
12년 전 | 642 | |
| 6627 |
|
12년 전 | 695 | |
| 6626 | 12년 전 | 1616 | ||
| 6625 |
|
12년 전 | 716 | |
| 6624 |
미켈란젤로의왼손
|
12년 전 | 479 | |
| 6623 |
|
12년 전 | 1042 | |
| 6622 | 12년 전 | 1379 | ||
| 6621 |
차가운바람
|
12년 전 | 630 | |
| 6620 | 12년 전 | 731 | ||
| 6619 |
|
12년 전 | 967 | |
| 6618 | 12년 전 | 1741 | ||
| 6617 | 12년 전 | 638 | ||
| 6616 |
차가운바람
|
12년 전 | 889 | |
| 6615 | 12년 전 | 2853 | ||
| 6614 | 12년 전 | 613 | ||
| 6613 |
강명구베드로
|
12년 전 | 527 | |
| 6612 |
|
12년 전 | 424 | |
| 6611 | 12년 전 | 1204 | ||
| 6610 | 12년 전 | 1019 | ||
| 6609 | 12년 전 | 3679 | ||
| 6608 |
|
12년 전 | 829 | |
| 6607 | 12년 전 | 692 | ||
| 6606 | 12년 전 | 565 | ||
| 6605 | 12년 전 | 453 | ||
| 6604 | 12년 전 | 971 | ||
| 6603 |
geektoo
|
12년 전 | 693 | |
| 6602 | 12년 전 | 835 | ||
| 6601 | 12년 전 | 358 | ||
| 6600 | 12년 전 | 401 | ||
| 6599 | 12년 전 | 537 | ||
| 6598 | 12년 전 | 935 | ||
| 6597 | 12년 전 | 930 | ||
| 6596 | 12년 전 | 414 | ||
| 6595 | 12년 전 | 785 | ||
| 6594 | 12년 전 | 4576 | ||
| 6593 | 12년 전 | 2579 | ||
| 6592 | 12년 전 | 826 | ||
| 6591 | 12년 전 | 584 | ||
| 6590 |
|
12년 전 | 1388 | |
| 6589 | 12년 전 | 758 | ||
| 6588 |
GINUSSOFT
|
12년 전 | 5125 | |
| 6587 | 12년 전 | 6209 | ||
| 6586 | 12년 전 | 1043 | ||
| 6585 | 12년 전 | 802 | ||
| 6584 | 12년 전 | 457 | ||
| 6583 |
|
12년 전 | 983 | |
| 6582 | 12년 전 | 870 | ||
| 6581 | 12년 전 | 839 | ||
| 6580 | 12년 전 | 617 | ||
| 6579 |
알랑가몰라
|
12년 전 | 920 | |
| 6578 | 12년 전 | 1328 | ||
| 6577 | 12년 전 | 1499 | ||
| 6576 |
경dragon
|
12년 전 | 767 | |
| 6575 | 12년 전 | 1880 | ||
| 6574 | 12년 전 | 681 | ||
| 6573 | 12년 전 | 978 | ||
| 6572 |
|
12년 전 | 1664 | |
| 6571 |
CTOMAN
|
12년 전 | 1953 | |
| 6570 | 12년 전 | 1728 | ||
| 6569 | 12년 전 | 1884 | ||
| 6568 | 12년 전 | 2403 | ||
| 6567 | 12년 전 | 1030 | ||
| 6566 |
lainfox
|
12년 전 | 1527 | |
| 6565 | 12년 전 | 3653 | ||
| 6564 |
제주프라이스
|
12년 전 | 1532 | |
| 6563 | 12년 전 | 1574 | ||
| 6562 |
프로프리랜서
|
12년 전 | 1345 | |
| 6561 |
프로프리랜서
|
12년 전 | 964 | |
| 6560 |
프로프리랜서
|
12년 전 | 1218 | |
| 6559 |
프로프리랜서
|
12년 전 | 1135 | |
| 6558 |
프로프리랜서
|
12년 전 | 1351 | |
| 6557 |
프로프리랜서
|
12년 전 | 1970 | |
| 6556 |
프로프리랜서
|
12년 전 | 1520 | |
| 6555 |
프로프리랜서
|
12년 전 | 1361 | |
| 6554 |
프로프리랜서
|
12년 전 | 3887 | |
| 6553 |
프로프리랜서
|
12년 전 | 1506 | |
| 6552 | 12년 전 | 841 | ||
| 6551 |
왕초보sasa
|
12년 전 | 1534 | |
| 6550 |
왕초보sasa
|
12년 전 | 628 | |
| 6549 |
왕초보sasa
|
12년 전 | 902 | |
| 6548 | 12년 전 | 1300 | ||
| 6547 | 12년 전 | 1187 | ||
| 6546 | 12년 전 | 5156 | ||
| 6545 | 12년 전 | 2514 | ||
| 6544 |
AnnieK
|
12년 전 | 1777 | |
| 6543 |
베르무트7
|
12년 전 | 625 | |
| 6542 |
오늘도망했다
|
12년 전 | 2232 | |
| 6541 | 12년 전 | 819 | ||
| 6540 | 12년 전 | 1133 | ||
| 6539 | 12년 전 | 847 | ||
| 6538 |
senseme
|
12년 전 | 3368 | |
| 6537 | 12년 전 | 779 | ||
| 6536 | 12년 전 | 3666 | ||
| 6535 | 12년 전 | 1348 | ||
| 6534 | 12년 전 | 1624 | ||
| 6533 | 12년 전 | 2242 | ||
| 6532 |
냐옹이사범
|
12년 전 | 2305 | |
| 6531 | 12년 전 | 568 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기