우분투 서버 셋팅하는 방법

· 12년 전 · 3953 · 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,761
12년 전 조회 3,395
12년 전 조회 2,974
12년 전 조회 2,787
12년 전 조회 5,386
12년 전 조회 3,014
12년 전 조회 2,288
12년 전 조회 2,977
12년 전 조회 2,098
12년 전 조회 2,322
12년 전 조회 2,736
12년 전 조회 2,627
12년 전 조회 6,615
12년 전 조회 3,976
12년 전 조회 3,238
12년 전 조회 2,024
12년 전 조회 3,553
12년 전 조회 2,203
12년 전 조회 2,515
12년 전 조회 2,261
12년 전 조회 4,788
12년 전 조회 2,145
12년 전 조회 5,022
12년 전 조회 2,736
12년 전 조회 3,008
12년 전 조회 3,618
12년 전 조회 3,698
12년 전 조회 1,937
12년 전 조회 2,034
12년 전 조회 2,691
12년 전 조회 2,007
12년 전 조회 2,157
12년 전 조회 7,950
12년 전 조회 1,951
12년 전 조회 2,224
12년 전 조회 1,882
12년 전 조회 1,911
12년 전 조회 2,165
12년 전 조회 2,141
12년 전 조회 3,113
12년 전 조회 3,133
12년 전 조회 2,718
12년 전 조회 6,615
12년 전 조회 2,898
12년 전 조회 2,982
12년 전 조회 2,366
12년 전 조회 3,366
12년 전 조회 2,772
12년 전 조회 4,456
12년 전 조회 3,954
12년 전 조회 3,308
12년 전 조회 3,794
12년 전 조회 3,246
12년 전 조회 3,054
12년 전 조회 2,405
12년 전 조회 2,540
12년 전 조회 6,978
12년 전 조회 4,035
12년 전 조회 4,498
12년 전 조회 3,133
12년 전 조회 2,837
12년 전 조회 2,229
12년 전 조회 3,216
12년 전 조회 2,335
12년 전 조회 2,857
12년 전 조회 4,114
12년 전 조회 3,726
12년 전 조회 3,073
12년 전 조회 8,022
12년 전 조회 3,882
12년 전 조회 2,081
12년 전 조회 2,049
12년 전 조회 2,782
12년 전 조회 3,407
12년 전 조회 2,239
12년 전 조회 2,142
12년 전 조회 2,755
12년 전 조회 2,923
12년 전 조회 2,122
12년 전 조회 2,555
12년 전 조회 2,854
12년 전 조회 2,212
12년 전 조회 2,558
12년 전 조회 5,155
12년 전 조회 2,872
12년 전 조회 2,389
12년 전 조회 2,273
12년 전 조회 2,696
12년 전 조회 2,933
12년 전 조회 5,720
12년 전 조회 7,045
12년 전 조회 2,183
12년 전 조회 3,627
12년 전 조회 8,214
12년 전 조회 3,880
12년 전 조회 1.1만
12년 전 조회 1,998
12년 전 조회 2,182
12년 전 조회 2,859
12년 전 조회 3,167