컴

우분투서버 셋팅버입니다

· 2013-05-08 (수) 11:12:34 · 4089 · 5

서버 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>

첨부파일

|

댓글 5개

감사합니다~
감사합니다.
공부의 길은 멀고
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
15-12-13 조회 2,509
15-12-13 조회 2,923
15-12-11 조회 2,577
15-12-11 조회 2,537
15-12-11 조회 2,547
15-12-10 조회 2,497
15-12-10 조회 2,563
15-12-10 조회 2,535
15-12-03 조회 3,178
15-12-03 조회 2,696
15-11-25 조회 2,775
15-11-09 조회 3,027
15-11-04 조회 2,939
15-06-09 조회 4,067
15-05-06 조회 5,061
15-03-28 조회 4,516
14-12-05 조회 4,973
14-10-25 조회 4,985
14-10-13 조회 4,247
14-10-03 조회 6,119
14-09-19 조회 4,939
14-09-18 조회 4,020
14-09-13 조회 4,586
14-09-03 조회 5,565
14-08-26 조회 4,181
14-08-26 조회 3,968
14-08-26 조회 3,954
14-08-11 조회 6,384
14-08-06 조회 4,100
14-08-06 조회 3,700
14-08-06 조회 3,886
14-08-01 조회 6,215
14-08-01 조회 3,813
14-07-30 조회 4,406
14-06-28 조회 5,142
14-06-28 조회 4,417
14-05-11 조회 4,560
14-05-09 조회 4,912
14-05-09 조회 7,677
14-04-30 조회 4,238
14-04-27 조회 4,161
14-04-25 조회 4,875
14-04-21 조회 3,849
14-04-21 조회 4,981
14-04-10 조회 4,580
14-04-01 조회 6,142
14-03-03 조회 3,513
14-02-25 조회 5,900
14-02-14 조회 5,184
14-02-13 조회 4,934
14-01-03 조회 4,417
13-12-06 조회 3,755
13-11-22 조회 5,505
13-11-18 조회 4,005
13-10-02 조회 4,425
13-10-02 조회 3,680
13-10-02 조회 3,940
13-10-02 조회 3,804
13-10-02 조회 4,168
13-09-16 조회 8,014
13-09-16 조회 5,374
13-08-18 조회 5,372
13-07-11 조회 4,023
13-07-10 조회 4,665
13-07-09 조회 4,706
13-07-09 조회 4,955
13-07-04 조회 4,419
13-07-04 조회 4,093
13-07-04 조회 4,208
13-07-01 조회 4,700
13-07-01 조회 4,515
13-07-01 조회 6,744
13-06-23 조회 4,352
13-06-05 조회 3,609
13-05-29 조회 4,849
13-05-10 조회 4,253
13-04-05 조회 4,866
13-04-05 조회 6,556
13-04-05 조회 1.1만
13-04-05 조회 7,153
13-04-05 조회 6,546
13-03-31 조회 5,818
13-03-31 조회 4,135
13-03-28 조회 4,502
13-03-28 조회 6,695
13-03-28 조회 9,181
13-03-28 조회 4,310
13-03-24 조회 3,928
13-03-21 조회 4,599
13-03-21 조회 1.8만
13-03-14 조회 3,913
13-03-10 조회 4,717
13-03-10 조회 4,462
13-03-10 조회 4,178
13-03-08 조회 5,243
13-03-08 조회 4,353
13-03-03 조회 4,999
13-03-03 조회 7,443
13-03-03 조회 4,205
13-03-03 조회 1.1만