컴

우분투 서버 셋팅하는 방법

· 2013-08-22 (목) 21:16:23 · 5457 · 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-08-26 조회 7,430
14-08-25 조회 4,231
14-08-23 조회 3,991
14-08-22 조회 4,483
14-08-22 조회 1.1만
14-08-22 조회 4,035
14-08-22 조회 5,292
14-08-22 조회 4,240
14-08-22 조회 4,135
14-08-21 조회 4,291
14-08-21 조회 3,849
14-08-21 조회 3,693
14-08-20 조회 4,034
14-08-20 조회 3,696
14-08-19 조회 4,496
14-08-19 조회 3,724
14-08-19 조회 4,052
14-08-19 조회 3,823
14-08-19 조회 7,569
14-08-19 조회 3,672
14-08-18 조회 3,940
14-08-18 조회 4,465
14-08-18 조회 3,839
14-08-17 조회 8,249
14-08-17 조회 6,529
14-08-17 조회 7,952
14-08-17 조회 3,749
14-08-16 조회 4,301
14-08-16 조회 4,278
14-08-16 조회 4,342
14-08-14 조회 4,086
14-08-14 조회 3,638
14-08-13 조회 6,416
14-08-13 조회 5,976
14-08-13 조회 5,368
14-08-13 조회 4,582
14-08-13 조회 4,465
14-08-13 조회 5,843
14-08-13 조회 3,754
14-08-12 조회 4,120
14-08-12 조회 5,490
14-08-12 조회 6,360
14-08-12 조회 4,237
14-08-12 조회 3,902
14-08-12 조회 4,417
14-08-11 조회 3,753
14-08-11 조회 4,434
14-08-11 조회 3,751
14-08-11 조회 4,444
14-08-11 조회 4,198
14-08-11 조회 5,271
14-08-11 조회 6,994
14-08-11 조회 6,643
14-08-11 조회 6,749
14-08-11 조회 4,655
14-08-11 조회 4,694
14-08-11 조회 5,315
14-08-08 조회 3,974
14-08-08 조회 4,617
14-08-08 조회 6,769
14-08-07 조회 5,347
14-08-07 조회 3,677
14-08-07 조회 4,388
14-08-06 조회 4,196
14-08-06 조회 3,812
14-08-06 조회 6,094
14-08-06 조회 4,641
14-08-06 조회 4,552
14-08-06 조회 4,176
14-08-06 조회 6,448
14-08-06 조회 5,721
14-08-06 조회 4,059
14-08-06 조회 6,610
14-08-06 조회 4,093
14-08-05 조회 3,651
14-08-05 조회 3,957
14-08-05 조회 3,719
14-08-05 조회 3,744
14-08-05 조회 4,075
14-08-04 조회 4,942
14-08-04 조회 4,126
14-08-04 조회 3,712
14-08-03 조회 3,571
14-08-03 조회 5,670
14-08-03 조회 5,083
14-08-03 조회 5,333
14-08-02 조회 4,593
14-08-01 조회 5,716
14-08-01 조회 6,424
14-08-01 조회 7,594
14-08-01 조회 8,864
14-08-01 조회 5,589
14-08-01 조회 4,848
14-08-01 조회 4,782
14-08-01 조회 4,164
14-08-01 조회 4,142
14-08-01 조회 4,258
14-08-01 조회 3,939
14-08-01 조회 4,843
14-08-01 조회 5,228