서버 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년 전
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4830 |
임페리얼웹
|
13년 전 | 1372 | |
| 4829 |
임페리얼웹
|
13년 전 | 722 | |
| 4828 | 13년 전 | 3484 | ||
| 4827 |
|
13년 전 | 1241 | |
| 4826 | 13년 전 | 2750 | ||
| 4825 | 13년 전 | 1085 | ||
| 4824 |
gnuskin쩜net
|
13년 전 | 772 | |
| 4823 | 13년 전 | 819 | ||
| 4822 |
visualp
|
13년 전 | 685 | |
| 4821 |
다케미카코
|
13년 전 | 1262 | |
| 4820 | 13년 전 | 1349 | ||
| 4819 | 13년 전 | 2667 | ||
| 4818 |
크라이스트
|
13년 전 | 4239 | |
| 4817 |
임페리얼웹
|
13년 전 | 714 | |
| 4816 | 13년 전 | 3264 | ||
| 4815 |
하모니칼수
|
13년 전 | 653 | |
| 4814 | 13년 전 | 1115 | ||
| 4813 | 13년 전 | 710 | ||
| 4812 |
임페리얼웹
|
13년 전 | 1089 | |
| 4811 |
임페리얼웹
|
13년 전 | 1836 | |
| 4810 | 13년 전 | 1154 | ||
| 4809 | 13년 전 | 632 | ||
| 4808 | 13년 전 | 1285 | ||
| 4807 |
너는나의봄이다
|
13년 전 | 898 | |
| 4806 | 13년 전 | 1297 | ||
| 4805 | 13년 전 | 1777 | ||
| 4804 | 13년 전 | 1078 | ||
| 4803 |
한번잘해보자
|
13년 전 | 721 | |
| 4802 | 13년 전 | 1907 | ||
| 4801 |
꼬꼬아부지
|
13년 전 | 1186 | |
| 4800 | 13년 전 | 778 | ||
| 4799 |
|
13년 전 | 726 | |
| 4798 | 13년 전 | 1076 | ||
| 4797 |
한번잘해보자
|
13년 전 | 616 | |
| 4796 | 13년 전 | 1724 | ||
| 4795 | 13년 전 | 1005 | ||
| 4794 |
|
13년 전 | 1018 | |
| 4793 |
|
13년 전 | 658 | |
| 4792 | 13년 전 | 1292 | ||
| 4791 | 13년 전 | 2101 | ||
| 4790 |
|
13년 전 | 622 | |
| 4789 |
한번잘해보자
|
13년 전 | 517 | |
| 4788 |
|
13년 전 | 694 | |
| 4787 | 13년 전 | 3287 | ||
| 4786 |
한번잘해보자
|
13년 전 | 758 | |
| 4785 | 13년 전 | 1307 | ||
| 4784 | 13년 전 | 1080 | ||
| 4783 |
|
13년 전 | 725 | |
| 4782 | 13년 전 | 7737 | ||
| 4781 |
크라운엠버서더
|
13년 전 | 1111 | |
| 4780 | 13년 전 | 1758 | ||
| 4779 | 13년 전 | 758 | ||
| 4778 | 13년 전 | 1089 | ||
| 4777 | 13년 전 | 919 | ||
| 4776 | 13년 전 | 1888 | ||
| 4775 | 13년 전 | 3318 | ||
| 4774 | 13년 전 | 1534 | ||
| 4773 | 13년 전 | 3241 | ||
| 4772 | 13년 전 | 1418 | ||
| 4771 | 13년 전 | 3863 | ||
| 4770 | 13년 전 | 1426 | ||
| 4769 | 13년 전 | 912 | ||
| 4768 | 13년 전 | 1888 | ||
| 4767 | 13년 전 | 2665 | ||
| 4766 | 13년 전 | 1574 | ||
| 4765 | 13년 전 | 1382 | ||
| 4764 | 13년 전 | 3144 | ||
| 4763 | 13년 전 | 1165 | ||
| 4762 |
|
13년 전 | 725 | |
| 4761 | 13년 전 | 1612 | ||
| 4760 | 13년 전 | 852 | ||
| 4759 |
NTYPE
|
13년 전 | 5177 | |
| 4758 |
프로프리랜서
|
13년 전 | 829 | |
| 4757 |
프로프리랜서
|
13년 전 | 1216 | |
| 4756 | 13년 전 | 816 | ||
| 4755 |
원시인교주
|
13년 전 | 838 | |
| 4754 |
there007
|
13년 전 | 956 | |
| 4753 | 13년 전 | 1767 | ||
| 4752 |
세상의중심
|
13년 전 | 1577 | |
| 4751 | 13년 전 | 1303 | ||
| 4750 | 13년 전 | 1504 | ||
| 4749 |
또다른세상
|
13년 전 | 3657 | |
| 4748 | 13년 전 | 769 | ||
| 4747 |
cula100jak
|
13년 전 | 1658 | |
| 4746 | 13년 전 | 1481 | ||
| 4745 |
|
13년 전 | 618 | |
| 4744 |
designcity
|
13년 전 | 744 | |
| 4743 | 13년 전 | 621 | ||
| 4742 |
|
13년 전 | 8356 | |
| 4741 | 13년 전 | 851 | ||
| 4740 | 13년 전 | 1656 | ||
| 4739 | 13년 전 | 1326 | ||
| 4738 |
|
13년 전 | 752 | |
| 4737 |
Xerro
|
13년 전 | 492 | |
| 4736 | 13년 전 | 3723 | ||
| 4735 |
keith
|
13년 전 | 542 | |
| 4734 |
|
13년 전 | 698 | |
| 4733 | 13년 전 | 1753 | ||
| 4732 |
|
13년 전 | 1251 | |
| 4731 |
|
13년 전 | 1297 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기