컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5442 · 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건
+
제목 글쓴이 날짜 조회
13-12-07 조회 3,132
13-12-06 조회 2,650
13-12-06 조회 3,199
13-12-06 조회 2,771
13-12-06 조회 2,986
13-12-06 조회 2,676
13-12-06 조회 3,412
13-12-06 조회 3,738
13-12-06 조회 2,761
13-12-06 조회 2,714
13-12-06 조회 3,802
13-12-05 조회 2,751
13-12-05 조회 3,346
13-12-05 조회 3,202
13-12-05 조회 3,614
13-12-05 조회 3,525
13-12-04 조회 8,334
13-12-03 조회 3,486
13-12-02 조회 2,774
13-12-02 조회 2,625
13-11-30 조회 2,563
13-11-29 조회 2,815
13-11-28 조회 3,033
13-11-27 조회 3,628
13-11-27 조회 3,016
13-11-27 조회 3,399
13-11-27 조회 2,550
13-11-27 조회 2,725
13-11-27 조회 4,767
13-11-26 조회 4,018
13-11-25 조회 3,510
13-11-25 조회 5,321
13-11-23 조회 2,696
13-11-23 조회 4,795
13-11-23 조회 4,350
13-11-23 조회 4,111
13-11-23 조회 4,052
13-11-22 조회 3,065
13-11-22 조회 3,743
13-11-22 조회 3,592
13-11-22 조회 3,141
13-11-22 조회 5,561
13-11-21 조회 2,796
13-11-21 조회 3,284
13-11-20 조회 3,651
13-11-19 조회 4,079
13-11-19 조회 3,085
13-11-19 조회 3,715
13-11-19 조회 3,063
13-11-19 조회 4,825
13-11-18 조회 3,105
13-11-18 조회 2,934
13-11-18 조회 3,247
13-11-18 조회 4,990
13-11-18 조회 4,388
13-11-18 조회 6,850
13-11-18 조회 4,077
13-11-18 조회 4,492
13-11-18 조회 3,860
13-11-18 조회 3,920
13-11-18 조회 3,182
13-11-16 조회 3,214
13-11-15 조회 4,446
13-11-15 조회 3,230
13-11-14 조회 2,980
13-11-14 조회 3,742
13-11-14 조회 4,100
13-11-13 조회 3,217
13-11-13 조회 3,261
13-11-13 조회 3,439
13-11-13 조회 4,319
13-11-13 조회 3,157
13-11-12 조회 3,479
13-11-12 조회 5,693
13-11-07 조회 3,213
13-11-07 조회 3,181
13-11-06 조회 3,130
13-11-05 조회 3,850
13-11-05 조회 3,624
13-11-05 조회 6,657
13-11-05 조회 3,599
13-11-04 조회 3,201
13-11-04 조회 3,218
13-11-04 조회 2,998
13-11-02 조회 3,663
13-11-02 조회 3,299
13-11-01 조회 3,556
13-11-01 조회 2,925
13-11-01 조회 3,068
13-10-31 조회 3,137
13-10-31 조회 3,526
13-10-31 조회 3,926
13-10-31 조회 3,117
13-10-30 조회 3,421
13-10-30 조회 7,693
13-10-30 조회 5,522
13-10-30 조회 3,390
13-10-29 조회 3,222
13-10-29 조회 4,388
13-10-29 조회 3,655