우분투 서버 셋팅하는 방법

· 12년 전 · 3894 · 1
서버 Apache/2.0.55 (Ubuntu) 입니다.
/etc/apache2/apache2.conf 에 httpd.conf,port.conf등을 인클루드하는 형태로 설정을 잡더군요.
질문의 요지는 하나의 ip:80 포트만 사용하여 두개의 도메인을 각각 다른 경로에 세팅해주는 방법입니다.

----------------------------------------
설정 파일가운데 호스트 관련 부분은 아래 내용이 전부입니다.
/etc/apache2/sites-available/default
NameVirtualHost *
<VirtualHost *>
ServerAdmin master@gaetgol.net
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개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
12년 전 조회 2,678
12년 전 조회 3,302
12년 전 조회 2,885
12년 전 조회 2,712
12년 전 조회 5,305
12년 전 조회 2,936
12년 전 조회 2,192
12년 전 조회 2,895
12년 전 조회 2,001
12년 전 조회 2,252
12년 전 조회 2,663
12년 전 조회 2,548
12년 전 조회 6,546
12년 전 조회 3,903
12년 전 조회 3,177
12년 전 조회 1,959
12년 전 조회 3,470
12년 전 조회 2,123
12년 전 조회 2,448
12년 전 조회 2,181
12년 전 조회 4,721
12년 전 조회 2,076
12년 전 조회 4,946
12년 전 조회 2,668
12년 전 조회 2,930
12년 전 조회 3,555
12년 전 조회 3,622
12년 전 조회 1,869
12년 전 조회 1,964
12년 전 조회 2,626
12년 전 조회 1,950
12년 전 조회 2,104
12년 전 조회 7,889
12년 전 조회 1,893
12년 전 조회 2,154
12년 전 조회 1,825
12년 전 조회 1,850
12년 전 조회 2,105
12년 전 조회 2,078
12년 전 조회 3,037
12년 전 조회 3,076
12년 전 조회 2,661
12년 전 조회 6,547
12년 전 조회 2,826
12년 전 조회 2,913
12년 전 조회 2,304
12년 전 조회 3,299
12년 전 조회 2,711
12년 전 조회 4,385
12년 전 조회 3,895
12년 전 조회 3,231
12년 전 조회 3,714
12년 전 조회 3,150
12년 전 조회 2,982
12년 전 조회 2,326
12년 전 조회 2,453
12년 전 조회 6,902
12년 전 조회 3,960
12년 전 조회 4,430
12년 전 조회 3,067
12년 전 조회 2,777
12년 전 조회 2,157
12년 전 조회 3,136
12년 전 조회 2,270
12년 전 조회 2,784
12년 전 조회 4,041
12년 전 조회 3,646
12년 전 조회 2,998
12년 전 조회 7,935
12년 전 조회 3,803
12년 전 조회 2,010
12년 전 조회 1,975
12년 전 조회 2,705
12년 전 조회 3,337
12년 전 조회 2,171
12년 전 조회 2,063
12년 전 조회 2,672
12년 전 조회 2,840
12년 전 조회 2,039
12년 전 조회 2,478
12년 전 조회 2,767
12년 전 조회 2,133
12년 전 조회 2,472
12년 전 조회 5,061
12년 전 조회 2,802
12년 전 조회 2,322
12년 전 조회 2,207
12년 전 조회 2,617
12년 전 조회 2,868
12년 전 조회 5,650
12년 전 조회 6,978
12년 전 조회 2,104
12년 전 조회 3,578
12년 전 조회 8,128
12년 전 조회 3,793
12년 전 조회 1.1만
12년 전 조회 1,929
12년 전 조회 2,110
12년 전 조회 2,807
12년 전 조회 3,101