컴

우분투서버 셋팅버입니다

· 2013-05-08 (수) 11:12:34 · 4152 · 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,187건
+
제목 글쓴이 날짜 조회
13-08-07 조회 3,330
13-08-06 조회 3,284
13-08-06 조회 4,319
13-08-05 조회 4,735
13-08-02 조회 3,572
13-08-01 조회 3,377
13-08-01 조회 4,088
13-07-30 조회 4,130
13-07-29 조회 3,287
13-07-29 조회 3,980
13-07-27 조회 4,232
13-07-26 조회 3,464
13-07-25 조회 4,057
13-07-25 조회 6,780
13-07-25 조회 4,191
13-07-24 조회 3,854
13-07-24 조회 3,598
13-07-24 조회 4,011
13-07-23 조회 4,467
13-07-23 조회 7,439
13-07-23 조회 8,552
13-07-23 조회 3,604
13-07-23 조회 5,226
13-07-23 조회 9,829
13-07-23 조회 5,466
13-07-23 조회 1.2만
13-07-19 조회 3,303
13-07-18 조회 3,419
13-07-16 조회 4,245
13-07-15 조회 4,603
13-07-15 조회 4,058
13-07-14 조회 4,734
13-07-14 조회 5,113
13-07-14 조회 6,068
13-07-14 조회 5,357
13-07-14 조회 5,506
13-07-14 조회 5,472
13-07-14 조회 4,776
13-07-14 조회 4,369
13-07-14 조회 4,228
13-07-14 조회 4,281
13-07-14 조회 5,016
13-07-14 조회 4,729
13-07-14 조회 4,434
13-07-14 조회 5,486
13-07-14 조회 5,389
13-07-14 조회 5,166
13-07-14 조회 4,879
13-07-14 조회 5,572
13-07-13 조회 3,834
13-07-12 조회 3,677
13-07-12 조회 3,344
13-07-12 조회 3,624
13-07-11 조회 4,195
13-07-11 조회 5,174
13-07-11 조회 5,598
13-07-11 조회 4,539
13-07-11 조회 4,225
13-07-11 조회 4,025
13-07-11 조회 1.3만
13-07-10 조회 3,771
13-07-10 조회 4,789
13-07-09 조회 4,224
13-07-09 조회 4,803
13-07-09 조회 5,064
13-07-08 조회 4,256
13-07-08 조회 4,783
13-07-07 조회 5,537
13-07-05 조회 4,344
13-07-04 조회 4,396
13-07-04 조회 4,336
13-07-04 조회 1.1만
13-07-04 조회 4,438
13-07-04 조회 4,253
13-07-04 조회 5,054
13-07-04 조회 4,122
13-07-04 조회 4,574
13-07-04 조회 4,181
13-07-04 조회 4,304
13-07-03 조회 6,028
13-07-01 조회 1.4만
13-07-01 조회 5,853
13-07-01 조회 5,931
13-07-01 조회 4,018
13-07-01 조회 5,527
13-07-01 조회 3,883
13-07-01 조회 4,810
13-07-01 조회 3,847
13-07-01 조회 4,642
13-07-01 조회 4,284
13-07-01 조회 4,705
13-07-01 조회 6,903
13-06-28 조회 5,138
13-06-28 조회 4,043
13-06-24 조회 8,611
13-06-24 조회 4,489
13-06-23 조회 4,480
13-06-21 조회 6,441
13-06-20 조회 4,754
13-06-19 조회 8,334