우분투서버 셋팅버입니다

· 2013-05-08 (수) 11:12:34 · 3923 · 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개

2013-05-10 (금) 11:32:50
감사합니다~
2013-05-10 (금) 14:38:13
감사합니다.
좋아요
공부의 길은 멀고
감사합니다
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
14-08-26 조회 3,359
14-08-26 조회 3,445
14-08-26 조회 4,044
14-08-26 조회 3,378
14-08-26 조회 3,679
14-08-26 조회 3,614
14-08-26 조회 3,341
14-08-26 조회 3,342
14-08-26 조회 3,400
14-08-26 조회 3,419
14-08-25 조회 3,987
14-08-16 조회 4,074
14-08-12 조회 4,022
14-08-05 조회 3,768
14-08-04 조회 4,528
14-08-04 조회 3,889
14-08-01 조회 4,897
14-07-29 조회 4,079
14-07-10 조회 3,931
14-07-08 조회 4,596
14-07-08 조회 4,176
14-07-05 조회 3,780
14-05-26 조회 5,306
14-05-26 조회 3,980
14-05-21 조회 4,455
14-05-19 조회 7,405
14-05-17 조회 6,602
14-04-30 조회 7,042
14-04-27 조회 4,437
14-04-26 조회 4,646
14-04-13 조회 4,719
14-04-13 조회 4,017
14-03-25 조회 6,383
14-03-25 조회 3,995
14-03-12 조회 3,798
14-03-12 조회 5,211
14-02-24 조회 4,507
13-12-27 조회 3,848
13-11-18 조회 4,182
13-11-18 조회 6,504
13-10-17 조회 4,508
13-10-03 조회 6,194
13-10-02 조회 4,038
13-09-29 조회 4,521
13-09-29 조회 3,913
13-09-17 조회 3,734
13-09-11 조회 5,918
13-09-09 조회 4,212
13-09-05 조회 9,244
13-08-23 조회 5,575
13-08-22 조회 5,088
13-08-22 조회 4,488
13-08-22 조회 4,941
13-08-17 조회 5,753
13-08-17 조회 4,050
13-07-11 조회 5,388
13-07-11 조회 4,338
13-07-08 조회 3,891
13-07-04 조회 4,142
13-07-04 조회 4,018
13-07-04 조회 3,890
13-07-03 조회 5,798
13-07-01 조회 3,657
13-07-01 조회 3,519
13-07-01 조회 4,421
13-06-21 조회 6,193
13-06-14 조회 4,772
13-06-11 조회 3,587
13-06-06 조회 5,246
13-06-05 조회 4,003
13-05-11 조회 4,754
13-05-10 조회 4,286
13-05-10 조회 4,608
13-05-10 조회 3,947
13-05-08 조회 4,278
13-05-08 조회 3,541
13-05-08 조회 3,924
13-05-08 조회 5,186
13-04-05 조회 5,966
13-03-31 조회 5,516
13-03-24 조회 3,906
13-03-24 조회 5,956
13-03-23 조회 3,546
13-03-21 조회 3,599
13-03-20 조회 3,719
13-03-20 조회 4,152
13-03-20 조회 3,664
13-03-20 조회 3,761
13-03-20 조회 6,013
13-03-20 조회 3,971
13-03-20 조회 4,682
13-03-19 조회 5,580
13-03-14 조회 3,718
13-03-14 조회 4,120
13-03-14 조회 4,406
13-03-08 조회 4,020
13-03-03 조회 4,434
13-02-24 조회 4,860
13-02-21 조회 4,575
13-02-19 조회 4,539