컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5396 · 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,188건
+
제목 글쓴이 날짜 조회
16-06-11 조회 3,090
16-02-15 조회 3,322
16-02-02 조회 2,986
16-01-25 조회 2,601
16-01-18 조회 2,701
16-01-08 조회 2,622
16-01-07 조회 2,630
16-01-05 조회 2,664
16-01-05 조회 2,964
16-01-05 조회 2,938
16-01-05 조회 2,816
16-01-04 조회 2,679
16-01-04 조회 2,684
16-01-04 조회 2,631
16-01-04 조회 2,544
15-12-30 조회 2,903
15-12-24 조회 2,709
15-12-24 조회 2,705
15-12-24 조회 2,731
15-12-24 조회 2,686
15-12-23 조회 2,676
15-12-16 조회 2,769
15-12-15 조회 2,830
15-12-11 조회 2,959
15-12-10 조회 2,820
15-11-09 조회 2,800
15-11-09 조회 3,023
15-10-06 조회 3,357
15-10-02 조회 3,134
15-05-29 조회 4,466
15-02-02 조회 4,447
15-01-18 조회 4,439
14-10-25 조회 8,389
14-10-25 조회 5,170
14-10-22 조회 7,173
14-10-22 조회 4,872
14-10-22 조회 4,828
14-10-18 조회 5,695
14-10-17 조회 6,076
14-10-17 조회 5,454
14-10-17 조회 8,990
14-10-17 조회 6,471
14-10-13 조회 4,395
14-10-13 조회 4,492
14-10-07 조회 6,171
14-09-24 조회 3,940
14-09-23 조회 4,001
14-09-22 조회 4,916
14-09-22 조회 6,143
14-09-22 조회 4,108
14-09-22 조회 3,785
14-09-21 조회 4,410
14-09-21 조회 3,901
14-09-20 조회 3,896
14-09-20 조회 3,802
14-09-20 조회 3,976
14-09-19 조회 3,907
14-09-19 조회 4,065
14-09-19 조회 3,956
14-09-19 조회 4,325
14-09-19 조회 3,975
14-09-19 조회 3,905
14-09-19 조회 4,187
14-09-19 조회 3,923
14-09-19 조회 3,972
14-09-19 조회 3,952
14-09-18 조회 4,025
14-09-18 조회 3,985
14-09-18 조회 4,256
14-09-18 조회 4,226
14-09-18 조회 4,235
14-09-18 조회 4,931
14-09-18 조회 5,475
14-09-18 조회 5,366
14-09-18 조회 4,174
14-09-18 조회 4,667
14-09-18 조회 4,278
14-08-30 조회 5,543
14-08-06 조회 6,033
14-08-06 조회 5,644
14-08-03 조회 5,284
14-06-12 조회 5,554
14-05-11 조회 3,738
14-05-11 조회 4,504
14-05-11 조회 4,603
14-05-09 조회 1.3만
14-05-01 조회 5,196
14-03-30 조회 4,404
14-03-23 조회 8,032
14-02-12 조회 3,917
13-10-29 조회 7,868
13-10-28 조회 8,695
13-09-29 조회 6,666
13-09-29 조회 4,290
13-07-23 조회 5,167
13-07-23 조회 1.2만
13-07-14 조회 4,694
13-07-14 조회 5,084
13-07-14 조회 6,045
13-07-14 조회 5,325