컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5462 · 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건
+
제목 글쓴이 날짜 조회
15-05-06 조회 3,655
15-04-30 조회 3,898
15-04-30 조회 5,639
15-04-28 조회 4,064
15-04-28 조회 3,380
15-04-16 조회 4,545
15-04-13 조회 4,289
15-04-12 조회 3,849
15-04-10 조회 3,762
15-04-09 조회 4,090
15-04-09 조회 3,650
15-04-07 조회 3,277
15-04-06 조회 4,044
15-04-04 조회 4,691
15-04-04 조회 4,205
15-04-03 조회 4,364
15-04-02 조회 4,872
15-04-01 조회 6,043
15-04-01 조회 3,544
15-03-30 조회 3,410
15-03-30 조회 4,049
15-03-28 조회 4,725
15-03-27 조회 3,731
15-03-26 조회 3,447
15-03-24 조회 3,540
15-03-23 조회 3,615
15-03-23 조회 3,925
15-03-20 조회 4,044
15-03-20 조회 4,811
15-03-18 조회 3,409
15-03-18 조회 3,622
15-03-02 조회 7,982
15-02-27 조회 3,413
15-02-27 조회 3,868
15-02-25 조회 3,940
15-02-23 조회 4,241
15-02-20 조회 3,915
15-02-19 조회 3,913
15-02-12 조회 4,210
15-02-11 조회 4,715
15-02-11 조회 4,459
15-02-11 조회 5,308
15-02-10 조회 4,693
15-02-09 조회 4,833
15-02-06 조회 3,810
15-02-04 조회 4,108
15-02-04 조회 3,895
15-02-04 조회 3,576
15-02-03 조회 3,424
15-02-02 조회 3,552
15-02-02 조회 4,485
15-01-31 조회 3,586
15-01-31 조회 4,673
15-01-30 조회 6,437
15-01-30 조회 4,013
15-01-30 조회 3,968
15-01-29 조회 3,894
15-01-29 조회 3,794
15-01-29 조회 3,463
15-01-29 조회 4,748
15-01-28 조회 3,359
15-01-28 조회 3,798
15-01-26 조회 4,072
15-01-26 조회 4,005
15-01-24 조회 5,506
15-01-23 조회 3,778
15-01-23 조회 4,316
15-01-22 조회 3,636
15-01-22 조회 3,603
15-01-22 조회 4,496
15-01-20 조회 3,904
15-01-19 조회 3,716
15-01-18 조회 4,484
15-01-17 조회 3,426
15-01-16 조회 4,191
15-01-16 조회 4,075
15-01-16 조회 7,323
15-01-16 조회 3,902
15-01-15 조회 3,457
15-01-13 조회 6,107
15-01-12 조회 4,063
15-01-09 조회 3,800
15-01-09 조회 3,315
15-01-09 조회 3,592
15-01-08 조회 4,511
15-01-08 조회 6,789
15-01-07 조회 5,051
15-01-06 조회 3,640
15-01-06 조회 3,196
15-01-05 조회 4,118
15-01-05 조회 4,221
15-01-04 조회 6,317
15-01-03 조회 3,895
14-12-31 조회 5,689
14-12-30 조회 4,901
14-12-30 조회 3,528
14-12-30 조회 3,988
14-12-30 조회 5,512
14-12-27 조회 4,062
14-12-27 조회 4,152