서버 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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6130 |
gender
|
12년 전 | 1092 | |
| 6129 | 12년 전 | 1322 | ||
| 6128 |
|
12년 전 | 3461 | |
| 6127 | 12년 전 | 695 | ||
| 6126 |
|
12년 전 | 2208 | |
| 6125 |
|
12년 전 | 4884 | |
| 6124 | 12년 전 | 660 | ||
| 6123 | 12년 전 | 3843 | ||
| 6122 | 12년 전 | 1017 | ||
| 6121 | 12년 전 | 3751 | ||
| 6120 | 12년 전 | 908 | ||
| 6119 | 12년 전 | 1769 | ||
| 6118 | 12년 전 | 929 | ||
| 6117 | 12년 전 | 2148 | ||
| 6116 | 12년 전 | 7942 | ||
| 6115 | 12년 전 | 1918 | ||
| 6114 |
|
12년 전 | 1705 | |
| 6113 | 12년 전 | 1522 | ||
| 6112 | 12년 전 | 594 | ||
| 6111 | 12년 전 | 2111 | ||
| 6110 | 12년 전 | 1850 | ||
| 6109 | 12년 전 | 640 | ||
| 6108 | 12년 전 | 1198 | ||
| 6107 | 12년 전 | 622 | ||
| 6106 | 12년 전 | 904 | ||
| 6105 | 12년 전 | 1190 | ||
| 6104 | 12년 전 | 3595 | ||
| 6103 | 12년 전 | 2121 | ||
| 6102 | 12년 전 | 2314 | ||
| 6101 | 12년 전 | 3677 | ||
| 6100 | 12년 전 | 3483 | ||
| 6099 | 12년 전 | 3152 | ||
| 6098 | 12년 전 | 4024 | ||
| 6097 | 12년 전 | 1015 | ||
| 6096 | 12년 전 | 5980 | ||
| 6095 | 12년 전 | 1369 | ||
| 6094 | 12년 전 | 1224 | ||
| 6093 | 12년 전 | 3406 | ||
| 6092 | 12년 전 | 3053 | ||
| 6091 | 12년 전 | 5193 | ||
| 6090 | 12년 전 | 2703 | ||
| 6089 | 12년 전 | 3326 | ||
| 6088 | 12년 전 | 1015 | ||
| 6087 | 12년 전 | 847 | ||
| 6086 | 12년 전 | 2018 | ||
| 6085 |
|
12년 전 | 806 | |
| 6084 |
웹디자인되고파
|
12년 전 | 2216 | |
| 6083 | 12년 전 | 1507 | ||
| 6082 | 12년 전 | 1111 | ||
| 6081 | 12년 전 | 2099 | ||
| 6080 |
Stiven
|
12년 전 | 2312 | |
| 6079 |
프로프리랜서
|
12년 전 | 1318 | |
| 6078 |
프로프리랜서
|
12년 전 | 786 | |
| 6077 |
프로프리랜서
|
12년 전 | 1342 | |
| 6076 |
프로프리랜서
|
12년 전 | 829 | |
| 6075 |
프로프리랜서
|
12년 전 | 1223 | |
| 6074 | 12년 전 | 3854 | ||
| 6073 | 12년 전 | 3949 | ||
| 6072 | 12년 전 | 1376 | ||
| 6071 | 12년 전 | 6992 | ||
| 6070 | 12년 전 | 7574 | ||
| 6069 | 12년 전 | 2320 | ||
| 6068 | 12년 전 | 3868 | ||
| 6067 |
smwkd
|
12년 전 | 632 | |
| 6066 | 12년 전 | 3656 | ||
| 6065 | 12년 전 | 3486 | ||
| 6064 | 12년 전 | 2720 | ||
| 6063 | 12년 전 | 2840 | ||
| 6062 | 12년 전 | 2371 | ||
| 6061 | 12년 전 | 2276 | ||
| 6060 | 12년 전 | 5184 | ||
| 6059 | 12년 전 | 2814 | ||
| 6058 | 12년 전 | 3134 | ||
| 6057 | 12년 전 | 2261 | ||
| 6056 | 12년 전 | 6841 | ||
| 6055 | 12년 전 | 2581 | ||
| 6054 | 12년 전 | 3434 | ||
| 6053 | 12년 전 | 2328 | ||
| 6052 | 12년 전 | 4820 | ||
| 6051 | 12년 전 | 3712 | ||
| 6050 | 12년 전 | 2555 | ||
| 6049 | 12년 전 | 2244 | ||
| 6048 |
|
12년 전 | 1297 | |
| 6047 | 12년 전 | 3441 | ||
| 6046 | 12년 전 | 4095 | ||
| 6045 | 12년 전 | 3455 | ||
| 6044 | 12년 전 | 5331 | ||
| 6043 | 12년 전 | 1650 | ||
| 6042 | 12년 전 | 1282 | ||
| 6041 | 12년 전 | 5165 | ||
| 6040 | 12년 전 | 939 | ||
| 6039 | 12년 전 | 3412 | ||
| 6038 | 12년 전 | 3412 | ||
| 6037 | 12년 전 | 2992 | ||
| 6036 | 12년 전 | 3341 | ||
| 6035 | 12년 전 | 2867 | ||
| 6034 | 12년 전 | 2845 | ||
| 6033 | 12년 전 | 2866 | ||
| 6032 | 12년 전 | 2854 | ||
| 6031 | 12년 전 | 2880 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기