서버 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년 전
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5830 | 13년 전 | 1189 | ||
| 5829 | 13년 전 | 5054 | ||
| 5828 | 13년 전 | 6438 | ||
| 5827 | 13년 전 | 1210 | ||
| 5826 |
|
13년 전 | 537 | |
| 5825 | 13년 전 | 900 | ||
| 5824 |
|
13년 전 | 1884 | |
| 5823 | 13년 전 | 5621 | ||
| 5822 |
jfascas
|
13년 전 | 1053 | |
| 5821 | 13년 전 | 1700 | ||
| 5820 | 13년 전 | 1315 | ||
| 5819 |
itlang
|
13년 전 | 512 | |
| 5818 | 13년 전 | 1308 | ||
| 5817 | 13년 전 | 784 | ||
| 5816 | 13년 전 | 625 | ||
| 5815 | 13년 전 | 6136 | ||
| 5814 | 13년 전 | 864 | ||
| 5813 |
악마의유혹
|
13년 전 | 463 | |
| 5812 | 13년 전 | 2808 | ||
| 5811 | 13년 전 | 1180 | ||
| 5810 | 13년 전 | 3534 | ||
| 5809 | 13년 전 | 1359 | ||
| 5808 | 13년 전 | 1065 | ||
| 5807 | 13년 전 | 575 | ||
| 5806 | 13년 전 | 560 | ||
| 5805 |
angrysol
|
13년 전 | 820 | |
| 5804 | 13년 전 | 1011 | ||
| 5803 | 13년 전 | 1741 | ||
| 5802 |
angrysol
|
13년 전 | 1064 | |
| 5801 |
후라보노보노
|
13년 전 | 2153 | |
| 5800 | 13년 전 | 1114 | ||
| 5799 |
|
13년 전 | 4198 | |
| 5798 |
|
13년 전 | 3364 | |
| 5797 |
|
13년 전 | 4940 | |
| 5796 | 13년 전 | 7546 | ||
| 5795 | 13년 전 | 2778 | ||
| 5794 | 13년 전 | 2230 | ||
| 5793 |
|
13년 전 | 662 | |
| 5792 | 13년 전 | 2974 | ||
| 5791 | 13년 전 | 847 | ||
| 5790 | 13년 전 | 4331 | ||
| 5789 |
|
13년 전 | 2479 | |
| 5788 |
|
13년 전 | 1854 | |
| 5787 |
오지랖선생
|
13년 전 | 1622 | |
| 5786 | 13년 전 | 5927 | ||
| 5785 | 13년 전 | 1763 | ||
| 5784 |
|
13년 전 | 1452 | |
| 5783 | 13년 전 | 1310 | ||
| 5782 |
|
13년 전 | 2822 | |
| 5781 | 13년 전 | 2856 | ||
| 5780 | 13년 전 | 1159 | ||
| 5779 |
|
13년 전 | 1358 | |
| 5778 |
오리진소프트
|
13년 전 | 4609 | |
| 5777 | 13년 전 | 679 | ||
| 5776 | 13년 전 | 1162 | ||
| 5775 | 13년 전 | 1467 | ||
| 5774 | 13년 전 | 1888 | ||
| 5773 |
|
13년 전 | 1921 | |
| 5772 | 13년 전 | 1686 | ||
| 5771 | 13년 전 | 4792 | ||
| 5770 | 13년 전 | 1129 | ||
| 5769 | 13년 전 | 6107 | ||
| 5768 |
|
13년 전 | 1579 | |
| 5767 | 13년 전 | 1687 | ||
| 5766 |
프로프리랜서
|
13년 전 | 1387 | |
| 5765 |
|
13년 전 | 1038 | |
| 5764 | 13년 전 | 1761 | ||
| 5763 |
|
13년 전 | 785 | |
| 5762 |
|
13년 전 | 2289 | |
| 5761 | 13년 전 | 619 | ||
| 5760 | 13년 전 | 623 | ||
| 5759 | 13년 전 | 3269 | ||
| 5758 | 13년 전 | 1085 | ||
| 5757 |
|
13년 전 | 741 | |
| 5756 | 13년 전 | 568 | ||
| 5755 | 13년 전 | 1062 | ||
| 5754 |
|
13년 전 | 2227 | |
| 5753 | 13년 전 | 678 | ||
| 5752 | 13년 전 | 1545 | ||
| 5751 | 13년 전 | 770 | ||
| 5750 | 13년 전 | 754 | ||
| 5749 | 13년 전 | 2577 | ||
| 5748 | 13년 전 | 1009 | ||
| 5747 | 13년 전 | 1218 | ||
| 5746 |
|
13년 전 | 652 | |
| 5745 | 13년 전 | 1659 | ||
| 5744 | 13년 전 | 687 | ||
| 5743 | 13년 전 | 834 | ||
| 5742 |
프로프리랜서
|
13년 전 | 579 | |
| 5741 | 13년 전 | 643 | ||
| 5740 | 13년 전 | 630 | ||
| 5739 | 13년 전 | 731 | ||
| 5738 | 13년 전 | 1927 | ||
| 5737 | 13년 전 | 992 | ||
| 5736 | 13년 전 | 1095 | ||
| 5735 | 13년 전 | 1996 | ||
| 5734 | 13년 전 | 1145 | ||
| 5733 | 13년 전 | 2787 | ||
| 5732 |
JOYCOM
|
13년 전 | 647 | |
| 5731 | 13년 전 | 3309 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기