우분투 서버 셋팅하는 방법

· 12년 전 · 2634 · 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,445
12년 전 조회 2,065
12년 전 조회 1,597
12년 전 조회 1,459
12년 전 조회 3,986
12년 전 조회 1,616
12년 전 조회 951
12년 전 조회 1,631
12년 전 조회 724
12년 전 조회 1,006
12년 전 조회 1,394
12년 전 조회 1,293
12년 전 조회 5,258
12년 전 조회 2,603
12년 전 조회 1,871
12년 전 조회 715
12년 전 조회 2,329
12년 전 조회 919
12년 전 조회 1,236
12년 전 조회 946
12년 전 조회 3,459
12년 전 조회 859
12년 전 조회 3,771
12년 전 조회 1,442
12년 전 조회 1,724
12년 전 조회 2,345
12년 전 조회 2,409
12년 전 조회 667
12년 전 조회 737
12년 전 조회 1,390
12년 전 조회 706
12년 전 조회 896
12년 전 조회 6,659
12년 전 조회 645
12년 전 조회 926
12년 전 조회 582
12년 전 조회 622
12년 전 조회 887
12년 전 조회 825
12년 전 조회 1,816
12년 전 조회 1,805
12년 전 조회 1,444
12년 전 조회 5,323
12년 전 조회 1,594
12년 전 조회 1,691
12년 전 조회 1,041
12년 전 조회 2,053
12년 전 조회 1,451
12년 전 조회 3,126
12년 전 조회 2,635
12년 전 조회 1,979
12년 전 조회 2,463
12년 전 조회 1,933
12년 전 조회 1,707
12년 전 조회 1,114
12년 전 조회 1,221
12년 전 조회 5,635
12년 전 조회 2,695
12년 전 조회 3,165
12년 전 조회 1,817
12년 전 조회 1,537
12년 전 조회 893
12년 전 조회 1,910
12년 전 조회 1,009
12년 전 조회 1,583
12년 전 조회 2,854
12년 전 조회 2,417
12년 전 조회 1,758
12년 전 조회 6,741
12년 전 조회 2,576
12년 전 조회 785
12년 전 조회 746
12년 전 조회 1,484
12년 전 조회 2,146
12년 전 조회 969
12년 전 조회 782
12년 전 조회 1,418
12년 전 조회 1,553
12년 전 조회 778
12년 전 조회 1,211
12년 전 조회 1,489
12년 전 조회 877
12년 전 조회 1,160
12년 전 조회 3,739
12년 전 조회 1,502
12년 전 조회 1,037
12년 전 조회 932
12년 전 조회 1,295
12년 전 조회 1,533
12년 전 조회 4,320
12년 전 조회 5,657
12년 전 조회 782
12년 전 조회 2,352
12년 전 조회 6,820
12년 전 조회 2,477
12년 전 조회 9,417
12년 전 조회 611
12년 전 조회 808
12년 전 조회 1,437
12년 전 조회 1,739
🐛 버그신고