컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5446 · 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-05-18 조회 5,699
14-05-17 조회 7,118
14-05-15 조회 4,692
14-05-15 조회 5,636
14-05-15 조회 3,855
14-05-13 조회 4,953
14-05-13 조회 7,488
14-05-13 조회 4,619
14-05-13 조회 5,022
14-05-13 조회 3,704
14-05-11 조회 3,777
14-05-11 조회 4,532
14-05-11 조회 4,645
14-05-11 조회 4,667
14-05-09 조회 5,492
14-05-09 조회 4,216
14-05-09 조회 6,443
14-05-09 조회 6,468
14-05-09 조회 5,024
14-05-09 조회 7,787
14-05-09 조회 1.3만
14-05-08 조회 5,813
14-05-08 조회 4,269
14-05-07 조회 6,582
14-05-05 조회 5,676
14-05-01 조회 5,263
14-04-30 조회 4,438
14-04-30 조회 7,431
14-04-29 조회 4,042
14-04-27 조회 4,299
14-04-27 조회 4,944
14-04-26 조회 5,041
14-04-25 조회 5,004
14-04-25 조회 7,776
14-04-22 조회 4,715
14-04-21 조회 3,958
14-04-21 조회 5,090
14-04-17 조회 4,812
14-04-16 조회 5,634
14-04-16 조회 3,939
14-04-16 조회 4,631
14-04-15 조회 4,631
14-04-15 조회 4,567
14-04-15 조회 4,341
14-04-14 조회 4,332
14-04-14 조회 4,305
14-04-14 조회 4,672
14-04-14 조회 4,822
14-04-14 조회 4,816
14-04-13 조회 4,724
14-04-13 조회 5,039
14-04-13 조회 4,265
14-04-12 조회 4,276
14-04-12 조회 4,414
14-04-12 조회 4,518
14-04-11 조회 5,041
14-04-10 조회 4,524
14-04-10 조회 4,676
14-04-10 조회 9,151
14-04-10 조회 4,681
14-04-10 조회 4,791
14-04-10 조회 4,830
14-04-09 조회 4,987
14-04-09 조회 5,358
14-04-08 조회 7,037
14-04-07 조회 5,328
14-04-06 조회 3,969
14-04-06 조회 3,705
14-04-06 조회 3,827
14-04-05 조회 3,913
14-04-05 조회 4,311
14-04-05 조회 1.8만
14-04-02 조회 4,440
14-04-02 조회 3,471
14-04-02 조회 3,494
14-04-02 조회 3,918
14-04-01 조회 6,212
14-03-31 조회 3,817
14-03-31 조회 3,565
14-03-30 조회 3,566
14-03-30 조회 3,405
14-03-30 조회 3,875
14-03-30 조회 4,437
14-03-29 조회 3,371
14-03-29 조회 3,778
14-03-29 조회 4,434
14-03-28 조회 3,287
14-03-28 조회 4,116
14-03-28 조회 3,550
14-03-27 조회 3,694
14-03-26 조회 4,128
14-03-26 조회 4,462
14-03-26 조회 3,355
14-03-26 조회 3,923
14-03-26 조회 3,348
14-03-25 조회 6,552
14-03-25 조회 3,925
14-03-25 조회 4,208
14-03-25 조회 3,968
14-03-25 조회 3,500