컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5445 · 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-02-12 조회 3,944
14-02-12 조회 3,008
14-02-12 조회 2,664
14-02-11 조회 3,036
14-02-11 조회 3,151
14-02-11 조회 2,928
14-02-10 조회 6,011
14-02-09 조회 2,738
14-02-08 조회 2,728
14-02-07 조회 2,724
14-02-07 조회 6,863
14-02-06 조회 2,776
14-02-06 조회 3,204
14-02-05 조회 2,983
14-02-05 조회 2,866
14-02-05 조회 3,795
14-02-05 조회 3,672
14-02-04 조회 2,801
14-02-04 조회 3,585
14-02-02 조회 3,207
14-02-01 조회 2,901
14-01-31 조회 2,781
14-01-29 조회 3,687
14-01-29 조회 3,159
14-01-29 조회 3,798
14-01-28 조회 4,834
14-01-28 조회 2,705
14-01-27 조회 2,977
14-01-27 조회 3,081
14-01-27 조회 5,583
14-01-27 조회 3,263
14-01-26 조회 3,772
14-01-25 조회 3,219
14-01-24 조회 2,763
14-01-24 조회 2,920
14-01-24 조회 3,657
14-01-22 조회 2,861
14-01-22 조회 3,023
14-01-22 조회 4,236
14-01-22 조회 3,622
14-01-22 조회 3,435
14-01-22 조회 3,422
14-01-21 조회 3,258
14-01-21 조회 3,315
14-01-20 조회 3,159
14-01-20 조회 3,565
14-01-20 조회 2,746
14-01-20 조회 2,994
14-01-19 조회 2,925
14-01-19 조회 3,490
14-01-18 조회 2,703
14-01-18 조회 3,372
14-01-16 조회 3,369
14-01-16 조회 2,590
14-01-16 조회 3,443
14-01-15 조회 4,039
14-01-15 조회 3,512
14-01-15 조회 3,725
14-01-14 조회 3,188
14-01-14 조회 2,565
14-01-13 조회 2,621
14-01-10 조회 4,886
14-01-10 조회 2,720
14-01-09 조회 2,489
14-01-09 조회 3,069
14-01-07 조회 3,107
14-01-07 조회 3,089
14-01-07 조회 2,876
14-01-06 조회 4,191
14-01-03 조회 4,498
14-01-03 조회 3,167
14-01-03 조회 2,746
14-01-03 조회 4,681
14-01-03 조회 1만
14-01-03 조회 4,394
14-01-02 조회 2,857
14-01-02 조회 3,308
13-12-27 조회 3,103
13-12-27 조회 4,217
13-12-27 조회 4,067
13-12-27 조회 2,636
13-12-27 조회 2,868
13-12-26 조회 4,020
13-12-24 조회 3,276
13-12-20 조회 2,879
13-12-20 조회 2,545
13-12-19 조회 3,319
13-12-19 조회 3,090
13-12-18 조회 3,788
13-12-18 조회 2,774
13-12-18 조회 2,796
13-12-17 조회 3,404
13-12-13 조회 2,864
13-12-12 조회 2,835
13-12-11 조회 3,307
13-12-10 조회 3,199
13-12-09 조회 3,339
13-12-09 조회 3,677
13-12-09 조회 2,847
13-12-08 조회 3,018