컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5443 · 1
서버 Apache/2.0.55 (Ubuntu) 입니다.
/etc/apache2/apache2.conf 에 httpd.conf,port.conf등을 인클루드하는 형태로 설정을 잡더군요.
질문의 요지는 하나의 ip:80 포트만 사용하여 두개의 도메인을 각각 다른 경로에 세팅해주는 방법입니다.

----------------------------------------
설정 파일가운데 호스트 관련 부분은 아래 내용이 전부입니다.
/etc/apache2/sites-available/default
NameVirtualHost *
<VirtualHost *>
ServerAdmin [email protected]
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>

첨부파일

댓글 1개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,187건
+
제목 글쓴이 날짜 조회
14-03-24 조회 3,678
14-03-24 조회 3,472
14-03-23 조회 8,072
14-03-22 조회 3,369
14-03-21 조회 3,471
14-03-20 조회 5,981
14-03-19 조회 3,749
14-03-19 조회 7,472
14-03-19 조회 4,869
14-03-18 조회 5,599
14-03-18 조회 3,289
14-03-17 조회 3,378
14-03-17 조회 4,372
14-03-17 조회 3,503
14-03-17 조회 4,512
14-03-17 조회 4,487
14-03-17 조회 7,400
14-03-16 조회 3,879
14-03-16 조회 4,990
14-03-16 조회 4,234
14-03-15 조회 4,253
14-03-15 조회 4,371
14-03-15 조회 3,743
14-03-15 조회 4,474
14-03-15 조회 3,091
14-03-14 조회 6,774
14-03-14 조회 4,678
14-03-14 조회 4,488
14-03-13 조회 3,936
14-03-13 조회 9,500
14-03-13 조회 3,827
14-03-13 조회 3,547
14-03-13 조회 5,451
14-03-13 조회 4,398
14-03-13 조회 3,584
14-03-12 조회 4,101
14-03-12 조회 5,340
14-03-12 조회 4,691
14-03-12 조회 4,496
14-03-12 조회 4,926
14-03-12 조회 5,066
14-03-12 조회 6,020
14-03-12 조회 5,482
14-03-11 조회 5,732
14-03-11 조회 6,342
14-03-11 조회 6,132
14-03-11 조회 3,451
14-03-11 조회 6,930
14-03-11 조회 8,095
14-03-10 조회 3,637
14-03-08 조회 4,861
14-03-07 조회 3,974
14-03-07 조회 3,291
14-03-06 조회 3,760
14-03-06 조회 3,323
14-03-05 조회 5,470
14-03-04 조회 4,221
14-03-04 조회 3,295
14-03-04 조회 3,337
14-03-04 조회 3,790
14-03-03 조회 3,440
14-03-03 조회 3,565
14-03-02 조회 3,244
14-03-02 조회 3,294
14-02-28 조회 3,378
14-02-26 조회 3,253
14-02-26 조회 3,246
14-02-25 조회 3,405
14-02-25 조회 5,956
14-02-24 조회 3,683
14-02-24 조회 2,926
14-02-24 조회 2,967
14-02-24 조회 4,764
14-02-23 조회 3,898
14-02-20 조회 3,331
14-02-20 조회 2,987
14-02-20 조회 3,391
14-02-20 조회 2,995
14-02-18 조회 3,939
14-02-17 조회 3,391
14-02-17 조회 2,863
14-02-17 조회 3,070
14-02-17 조회 4,250
14-02-17 조회 3,892
14-02-17 조회 3,473
14-02-15 조회 2,843
14-02-14 조회 3,415
14-02-14 조회 2,812
14-02-14 조회 5,042
14-02-14 조회 3,743
14-02-14 조회 3,764
14-02-14 조회 3,004
14-02-14 조회 2,785
14-02-14 조회 5,111
14-02-14 조회 3,333
14-02-14 조회 2,820
14-02-14 조회 5,223
14-02-13 조회 2,994
14-02-13 조회 4,991
14-02-12 조회 5,704