컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5464 · 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-10-25 조회 5,224
14-10-25 조회 6,414
14-10-25 조회 3,833
14-10-25 조회 3,980
14-10-24 조회 3,937
14-10-23 조회 4,552
14-10-22 조회 3,690
14-10-22 조회 4,368
14-10-22 조회 7,214
14-10-22 조회 4,919
14-10-22 조회 4,876
14-10-22 조회 9,043
14-10-19 조회 4,801
14-10-18 조회 5,767
14-10-17 조회 5,280
14-10-17 조회 4,062
14-10-17 조회 6,147
14-10-17 조회 5,534
14-10-17 조회 9,065
14-10-17 조회 6,541
14-10-17 조회 4,844
14-10-17 조회 5,162
14-10-14 조회 3,385
14-10-14 조회 4,296
14-10-13 조회 3,860
14-10-13 조회 6,539
14-10-13 조회 4,477
14-10-13 조회 4,371
14-10-13 조회 4,569
14-10-11 조회 6,744
14-10-11 조회 6,649
14-10-11 조회 6,528
14-10-10 조회 4,042
14-10-10 조회 6,490
14-10-10 조회 5,766
14-10-10 조회 6,346
14-10-10 조회 3,606
14-10-10 조회 5,519
14-10-10 조회 5,525
14-10-10 조회 5,597
14-10-10 조회 4,514
14-10-10 조회 5,006
14-10-10 조회 4,306
14-10-10 조회 4,153
14-10-08 조회 4,686
14-10-08 조회 3,798
14-10-08 조회 7,022
14-10-07 조회 6,237
14-10-07 조회 4,562
14-10-07 조회 5,585
14-10-07 조회 3,770
14-10-07 조회 4,755
14-10-07 조회 6,425
14-10-06 조회 6,775
14-10-06 조회 7,555
14-10-05 조회 3,760
14-10-04 조회 5,059
14-10-03 조회 6,372
14-10-02 조회 3,938
14-09-29 조회 4,142
14-09-29 조회 4,586
14-09-28 조회 3,910
14-09-27 조회 5,253
14-09-27 조회 4,712
14-09-26 조회 6,798
14-09-26 조회 5,229
14-09-25 조회 7,573
14-09-25 조회 4,080
14-09-25 조회 4,090
14-09-24 조회 4,890
14-09-24 조회 4,843
14-09-24 조회 4,334
14-09-24 조회 3,903
14-09-24 조회 4,522
14-09-24 조회 3,998
14-09-23 조회 4,185
14-09-23 조회 4,288
14-09-23 조회 4,125
14-09-22 조회 3,948
14-09-22 조회 4,869
14-09-22 조회 4,979
14-09-22 조회 6,195
14-09-22 조회 4,158
14-09-22 조회 3,853
14-09-22 조회 3,918
14-09-21 조회 5,852
14-09-21 조회 4,633
14-09-21 조회 4,462
14-09-21 조회 3,950
14-09-21 조회 4,529
14-09-21 조회 4,395
14-09-21 조회 4,074
14-09-20 조회 4,052
14-09-20 조회 3,959
14-09-20 조회 3,862
14-09-20 조회 4,591
14-09-20 조회 4,038
14-09-19 조회 3,952
14-09-19 조회 4,124
14-09-19 조회 4,332