서버 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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5930 | 12년 전 | 4640 | ||
| 5929 | 12년 전 | 7839 | ||
| 5928 | 12년 전 | 788 | ||
| 5927 | 12년 전 | 1415 | ||
| 5926 | 12년 전 | 1831 | ||
| 5925 |
김준수사랑
|
13년 전 | 1250 | |
| 5924 |
|
13년 전 | 2760 | |
| 5923 | 13년 전 | 959 | ||
| 5922 | 13년 전 | 1166 | ||
| 5921 | 13년 전 | 658 | ||
| 5920 | 13년 전 | 1181 | ||
| 5919 |
|
13년 전 | 1374 | |
| 5918 | 13년 전 | 12588 | ||
| 5917 |
프로프리랜서
|
13년 전 | 1099 | |
| 5916 |
프로프리랜서
|
13년 전 | 4624 | |
| 5915 |
프로프리랜서
|
13년 전 | 1605 | |
| 5914 |
프로프리랜서
|
13년 전 | 653 | |
| 5913 |
프로프리랜서
|
13년 전 | 932 | |
| 5912 |
프로프리랜서
|
13년 전 | 3746 | |
| 5911 |
프로프리랜서
|
13년 전 | 925 | |
| 5910 |
|
13년 전 | 4583 | |
| 5909 |
수야3019
|
13년 전 | 672 | |
| 5908 | 13년 전 | 834 | ||
| 5907 | 13년 전 | 1233 | ||
| 5906 | 13년 전 | 8757 | ||
| 5905 |
프로프리랜서
|
13년 전 | 1473 | |
| 5904 | 13년 전 | 2497 | ||
| 5903 | 13년 전 | 1652 | ||
| 5902 | 13년 전 | 1927 | ||
| 5901 | 13년 전 | 2013 | ||
| 5900 |
프로프리랜서
|
13년 전 | 1090 | |
| 5899 |
프로프리랜서
|
13년 전 | 1278 | |
| 5898 | 13년 전 | 17672 | ||
| 5897 | 13년 전 | 2333 | ||
| 5896 | 13년 전 | 4357 | ||
| 5895 | 13년 전 | 1691 | ||
| 5894 | 13년 전 | 2101 | ||
| 5893 |
프로프리랜서
|
13년 전 | 2159 | |
| 5892 | 13년 전 | 16039 | ||
| 5891 |
bitmaster
|
13년 전 | 1080 | |
| 5890 |
프로프리랜서
|
13년 전 | 946 | |
| 5889 |
|
13년 전 | 724 | |
| 5888 | 13년 전 | 1618 | ||
| 5887 |
|
13년 전 | 3199 | |
| 5886 | 13년 전 | 3448 | ||
| 5885 | 13년 전 | 2109 | ||
| 5884 | 13년 전 | 5651 | ||
| 5883 | 13년 전 | 2821 | ||
| 5882 | 13년 전 | 6029 | ||
| 5881 | 13년 전 | 1637 | ||
| 5880 | 13년 전 | 20716 | ||
| 5879 | 13년 전 | 905 | ||
| 5878 |
나의라임토마토
|
13년 전 | 1407 | |
| 5877 | 13년 전 | 16771 | ||
| 5876 |
maniAc
|
13년 전 | 2804 | |
| 5875 | 13년 전 | 1039 | ||
| 5874 | 13년 전 | 3735 | ||
| 5873 |
lainfox
|
13년 전 | 1182 | |
| 5872 | 13년 전 | 1346 | ||
| 5871 | 13년 전 | 796 | ||
| 5870 | 13년 전 | 2529 | ||
| 5869 |
AMDbest
|
13년 전 | 1513 | |
| 5868 |
한번잘해보자
|
13년 전 | 657 | |
| 5867 |
|
13년 전 | 916 | |
| 5866 | 13년 전 | 7493 | ||
| 5865 | 13년 전 | 2408 | ||
| 5864 | 13년 전 | 938 | ||
| 5863 | 13년 전 | 1311 | ||
| 5862 | 13년 전 | 2876 | ||
| 5861 | 13년 전 | 1028 | ||
| 5860 | 13년 전 | 19330 | ||
| 5859 | 13년 전 | 2944 | ||
| 5858 | 13년 전 | 2652 | ||
| 5857 | 13년 전 | 4823 | ||
| 5856 |
|
13년 전 | 1952 | |
| 5855 | 13년 전 | 817 | ||
| 5854 | 13년 전 | 1008 | ||
| 5853 | 13년 전 | 16106 | ||
| 5852 | 13년 전 | 825 | ||
| 5851 | 13년 전 | 2222 | ||
| 5850 | 13년 전 | 1773 | ||
| 5849 |
AMDbest
|
13년 전 | 1306 | |
| 5848 |
|
13년 전 | 1164 | |
| 5847 |
SeanLee
|
13년 전 | 1304 | |
| 5846 | 13년 전 | 23465 | ||
| 5845 | 13년 전 | 2651 | ||
| 5844 | 13년 전 | 28806 | ||
| 5843 |
|
13년 전 | 2207 | |
| 5842 | 13년 전 | 22519 | ||
| 5841 | 13년 전 | 5743 | ||
| 5840 |
Quincy
|
13년 전 | 935 | |
| 5839 | 13년 전 | 965 | ||
| 5838 | 13년 전 | 2820 | ||
| 5837 | 13년 전 | 1095 | ||
| 5836 | 13년 전 | 2314 | ||
| 5835 | 13년 전 | 1520 | ||
| 5834 | 13년 전 | 1502 | ||
| 5833 | 13년 전 | 6677 | ||
| 5832 | 13년 전 | 5213 | ||
| 5831 | 13년 전 | 1071 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기