우분투 서버 셋팅하는 방법

· 12년 전 · 2553 · 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년 전 조회 1,357
12년 전 조회 1,982
12년 전 조회 1,520
12년 전 조회 1,370
12년 전 조회 3,903
12년 전 조회 1,521
12년 전 조회 861
12년 전 조회 1,555
12년 전 조회 648
12년 전 조회 920
12년 전 조회 1,316
12년 전 조회 1,198
12년 전 조회 5,175
12년 전 조회 2,528
12년 전 조회 1,789
12년 전 조회 634
12년 전 조회 2,237
12년 전 조회 833
12년 전 조회 1,148
12년 전 조회 866
12년 전 조회 3,373
12년 전 조회 783
12년 전 조회 3,681
12년 전 조회 1,365
12년 전 조회 1,648
12년 전 조회 2,262
12년 전 조회 2,325
12년 전 조회 584
12년 전 조회 658
12년 전 조회 1,315
12년 전 조회 627
12년 전 조회 810
12년 전 조회 6,591
12년 전 조회 567
12년 전 조회 858
12년 전 조회 497
12년 전 조회 538
12년 전 조회 803
12년 전 조회 742
12년 전 조회 1,742
12년 전 조회 1,734
12년 전 조회 1,374
12년 전 조회 5,241
12년 전 조회 1,514
12년 전 조회 1,615
12년 전 조회 963
12년 전 조회 1,982
12년 전 조회 1,380
12년 전 조회 3,047
12년 전 조회 2,554
12년 전 조회 1,911
12년 전 조회 2,389
12년 전 조회 1,867
12년 전 조회 1,636
12년 전 조회 1,034
12년 전 조회 1,144
12년 전 조회 5,567
12년 전 조회 2,615
12년 전 조회 3,093
12년 전 조회 1,747
12년 전 조회 1,464
12년 전 조회 815
12년 전 조회 1,825
12년 전 조회 931
12년 전 조회 1,512
12년 전 조회 2,776
12년 전 조회 2,346
12년 전 조회 1,683
12년 전 조회 6,665
12년 전 조회 2,500
12년 전 조회 716
12년 전 조회 671
12년 전 조회 1,420
12년 전 조회 2,062
12년 전 조회 904
12년 전 조회 711
12년 전 조회 1,343
12년 전 조회 1,479
12년 전 조회 709
12년 전 조회 1,134
12년 전 조회 1,404
12년 전 조회 797
12년 전 조회 1,083
12년 전 조회 3,681
12년 전 조회 1,430
12년 전 조회 965
12년 전 조회 858
12년 전 조회 1,220
12년 전 조회 1,454
12년 전 조회 4,246
12년 전 조회 5,577
12년 전 조회 707
12년 전 조회 2,276
12년 전 조회 6,741
12년 전 조회 2,416
12년 전 조회 9,335
12년 전 조회 541
12년 전 조회 745
12년 전 조회 1,362
12년 전 조회 1,677
🐛 버그신고