서버 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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6830 |
112211dd
|
11년 전 | 785 | |
| 6829 |
진짜다진짜가나타남
|
11년 전 | 1184 | |
| 6828 | 11년 전 | 815 | ||
| 6827 |
봉보로봉봉
|
11년 전 | 897 | |
| 6826 |
jinion
|
11년 전 | 813 | |
| 6825 | 11년 전 | 796 | ||
| 6824 |
yunkiri486
|
11년 전 | 711 | |
| 6823 |
2donggalbi
|
11년 전 | 846 | |
| 6822 | 11년 전 | 842 | ||
| 6821 | 11년 전 | 793 | ||
| 6820 | 11년 전 | 3098 | ||
| 6819 | 11년 전 | 1247 | ||
| 6818 | 11년 전 | 512 | ||
| 6817 |
|
11년 전 | 600 | |
| 6816 | 11년 전 | 2067 | ||
| 6815 | 11년 전 | 1205 | ||
| 6814 | 11년 전 | 850 | ||
| 6813 | 11년 전 | 598 | ||
| 6812 |
|
11년 전 | 977 | |
| 6811 | 11년 전 | 574 | ||
| 6810 | 11년 전 | 1533 | ||
| 6809 |
낚시가좋아
|
11년 전 | 1042 | |
| 6808 | 11년 전 | 436 | ||
| 6807 | 11년 전 | 757 | ||
| 6806 |
Unhappy
|
11년 전 | 1765 | |
| 6805 | 11년 전 | 1587 | ||
| 6804 | 11년 전 | 1111 | ||
| 6803 | 11년 전 | 548 | ||
| 6802 |
asdfg
|
11년 전 | 1129 | |
| 6801 |
아트귀농인
|
11년 전 | 497 | |
| 6800 | 11년 전 | 2550 | ||
| 6799 | 11년 전 | 1350 | ||
| 6798 | 11년 전 | 1465 | ||
| 6797 | 11년 전 | 620 | ||
| 6796 |
purple63
|
11년 전 | 420 | |
| 6795 | 11년 전 | 2625 | ||
| 6794 |
커네드커네드
|
11년 전 | 951 | |
| 6793 | 11년 전 | 396 | ||
| 6792 | 11년 전 | 2486 | ||
| 6791 | 11년 전 | 503 | ||
| 6790 | 11년 전 | 2247 | ||
| 6789 |
리아빌리티
|
11년 전 | 3088 | |
| 6788 | 11년 전 | 1337 | ||
| 6787 | 11년 전 | 669 | ||
| 6786 | 11년 전 | 383 | ||
| 6785 | 11년 전 | 714 | ||
| 6784 |
|
11년 전 | 837 | |
| 6783 | 11년 전 | 574 | ||
| 6782 | 11년 전 | 3650 | ||
| 6781 |
리아빌리티
|
11년 전 | 474 | |
| 6780 | 11년 전 | 516 | ||
| 6779 | 11년 전 | 474 | ||
| 6778 | 11년 전 | 4674 | ||
| 6777 |
바보온달123
|
11년 전 | 605 | |
| 6776 | 11년 전 | 919 | ||
| 6775 | 11년 전 | 721 | ||
| 6774 |
DANet
|
11년 전 | 628 | |
| 6773 | 11년 전 | 1556 | ||
| 6772 | 11년 전 | 1348 | ||
| 6771 | 11년 전 | 607 | ||
| 6770 | 11년 전 | 1152 | ||
| 6769 | 11년 전 | 942 | ||
| 6768 | 11년 전 | 680 | ||
| 6767 | 11년 전 | 574 | ||
| 6766 | 11년 전 | 1257 | ||
| 6765 |
크림나이트
|
11년 전 | 985 | |
| 6764 | 11년 전 | 1530 | ||
| 6763 | 11년 전 | 2589 | ||
| 6762 | 11년 전 | 521 | ||
| 6761 |
|
11년 전 | 777 | |
| 6760 |
|
11년 전 | 705 | |
| 6759 | 11년 전 | 3337 | ||
| 6758 | 11년 전 | 1003 | ||
| 6757 | 11년 전 | 1264 | ||
| 6756 | 11년 전 | 886 | ||
| 6755 |
|
11년 전 | 565 | |
| 6754 |
|
11년 전 | 707 | |
| 6753 |
|
11년 전 | 1372 | |
| 6752 | 11년 전 | 597 | ||
| 6751 |
|
11년 전 | 645 | |
| 6750 |
|
11년 전 | 2012 | |
| 6749 | 11년 전 | 1204 | ||
| 6748 |
|
11년 전 | 1107 | |
| 6747 | 11년 전 | 1154 | ||
| 6746 | 11년 전 | 825 | ||
| 6745 |
|
11년 전 | 901 | |
| 6744 | 11년 전 | 845 | ||
| 6743 | 11년 전 | 1271 | ||
| 6742 | 11년 전 | 523 | ||
| 6741 |
Abilityarch
|
11년 전 | 595 | |
| 6740 | 11년 전 | 636 | ||
| 6739 |
leewin20
|
11년 전 | 1224 | |
| 6738 | 11년 전 | 499 | ||
| 6737 | 11년 전 | 1209 | ||
| 6736 | 11년 전 | 1244 | ||
| 6735 | 11년 전 | 539 | ||
| 6734 | 11년 전 | 1273 | ||
| 6733 |
RipperTNT
|
11년 전 | 1835 | |
| 6732 |
|
11년 전 | 1333 | |
| 6731 |
|
11년 전 | 1382 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기