컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5449 · 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-08-07 조회 3,342
13-08-06 조회 3,294
13-08-06 조회 4,329
13-08-05 조회 4,745
13-08-02 조회 3,581
13-08-01 조회 3,389
13-08-01 조회 4,098
13-07-30 조회 4,136
13-07-29 조회 3,298
13-07-29 조회 3,994
13-07-27 조회 4,241
13-07-26 조회 3,476
13-07-25 조회 4,063
13-07-25 조회 6,790
13-07-25 조회 4,200
13-07-24 조회 3,869
13-07-24 조회 3,614
13-07-24 조회 4,022
13-07-23 조회 4,476
13-07-23 조회 7,450
13-07-23 조회 8,566
13-07-23 조회 3,618
13-07-23 조회 5,242
13-07-23 조회 9,844
13-07-23 조회 5,476
13-07-23 조회 1.2만
13-07-19 조회 3,311
13-07-18 조회 3,432
13-07-16 조회 4,255
13-07-15 조회 4,613
13-07-15 조회 4,063
13-07-14 조회 4,743
13-07-14 조회 5,121
13-07-14 조회 6,076
13-07-14 조회 5,365
13-07-14 조회 5,515
13-07-14 조회 5,481
13-07-14 조회 4,786
13-07-14 조회 4,377
13-07-14 조회 4,238
13-07-14 조회 4,289
13-07-14 조회 5,032
13-07-14 조회 4,737
13-07-14 조회 4,446
13-07-14 조회 5,497
13-07-14 조회 5,401
13-07-14 조회 5,177
13-07-14 조회 4,888
13-07-14 조회 5,583
13-07-13 조회 3,844
13-07-12 조회 3,685
13-07-12 조회 3,357
13-07-12 조회 3,639
13-07-11 조회 4,208
13-07-11 조회 5,185
13-07-11 조회 5,611
13-07-11 조회 4,557
13-07-11 조회 4,241
13-07-11 조회 4,034
13-07-11 조회 1.3만
13-07-10 조회 3,786
13-07-10 조회 4,804
13-07-09 조회 4,243
13-07-09 조회 4,820
13-07-09 조회 5,082
13-07-08 조회 4,269
13-07-08 조회 4,797
13-07-07 조회 5,547
13-07-05 조회 4,358
13-07-04 조회 4,413
13-07-04 조회 4,355
13-07-04 조회 1.1만
13-07-04 조회 4,449
13-07-04 조회 4,264
13-07-04 조회 5,066
13-07-04 조회 4,136
13-07-04 조회 4,582
13-07-04 조회 4,200
13-07-04 조회 4,315
13-07-03 조회 6,039
13-07-01 조회 1.4만
13-07-01 조회 5,862
13-07-01 조회 5,942
13-07-01 조회 4,029
13-07-01 조회 5,534
13-07-01 조회 3,897
13-07-01 조회 4,817
13-07-01 조회 3,862
13-07-01 조회 4,652
13-07-01 조회 4,302
13-07-01 조회 4,720
13-07-01 조회 6,917
13-06-28 조회 5,147
13-06-28 조회 4,055
13-06-24 조회 8,622
13-06-24 조회 4,500
13-06-23 조회 4,493
13-06-21 조회 6,456
13-06-20 조회 4,765
13-06-19 조회 8,340