컴

우분투서버 셋팅버입니다

· 2013-05-08 (수) 11:12:34 · 4113 · 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건
+
제목 글쓴이 날짜 조회
12-08-29 조회 4,167
12-08-07 조회 3,832
12-08-03 조회 3,643
12-07-31 조회 3,750
12-07-30 조회 3,703
12-07-16 조회 3,899
12-07-15 조회 3,733
12-07-07 조회 3,595
12-07-06 조회 3,803
12-07-03 조회 3,756
12-06-29 조회 3,368
12-06-22 조회 3,741
12-06-17 조회 4,001
12-05-21 조회 3,923
12-05-02 조회 3,448
12-05-02 조회 4,244
12-05-02 조회 3,366
12-04-30 조회 3,563
12-04-30 조회 3,242
12-03-17 조회 4,106
12-03-10 조회 3,440
12-03-08 조회 3,964
12-03-03 조회 3,679
12-02-27 조회 5,094
12-02-17 조회 4,386
12-02-16 조회 4,668
12-02-03 조회 3,334
12-01-31 조회 3,244
12-01-24 조회 3,242
12-01-17 조회 3,945
12-01-05 조회 3,490
11-12-30 조회 3,223
11-12-23 조회 4,780
11-12-08 조회 3,544
11-12-07 조회 4,506
11-11-27 조회 3,930
11-11-25 조회 4,258
11-11-23 조회 3,704
11-11-22 조회 3,561
11-11-09 조회 3,273
11-10-23 조회 3,210
11-10-19 조회 3,166
11-10-08 조회 2,845
11-10-04 조회 2,847
11-10-04 조회 5,308
11-09-01 조회 4,382
11-08-13 조회 2,561
11-08-06 조회 3,243
11-07-11 조회 3,638
11-06-27 조회 2,996
11-06-21 조회 2,658
11-06-13 조회 2,471
11-06-07 조회 2,480
11-05-26 조회 2,435
11-04-20 조회 2,762
11-03-21 조회 2,864
11-03-18 조회 2,558
11-03-11 조회 2,573
11-02-07 조회 2,403
11-01-18 조회 2,726
11-01-12 조회 2,449
11-01-06 조회 2,539
10-12-10 조회 2,800
10-12-09 조회 2,652
10-12-08 조회 5,081
10-11-29 조회 2,918
10-11-28 조회 2,824
10-11-28 조회 2,657
10-11-19 조회 2,846
10-11-04 조회 2,721
10-10-21 조회 2,445
10-10-19 조회 3,409
10-10-12 조회 2,731
10-10-07 조회 2,561
10-09-30 조회 3,521
10-09-17 조회 3,933
10-09-17 조회 3,876
10-05-31 조회 3,584
09-12-31 조회 3,720
09-07-23 조회 5,045
08-09-16 조회 3,249
08-09-06 조회 2,990
08-09-04 조회 3,410
08-08-16 조회 4,441
08-08-15 조회 3,311
08-08-14 조회 4,528
08-08-12 조회 3,995
08-07-23 조회 2,811
08-07-10 조회 3,763
08-07-04 조회 2,991
08-06-27 조회 7,630
08-06-19 조회 4,939
08-05-27 조회 5,542
08-05-25 조회 5,377
08-05-23 조회 3,454
08-05-23 조회 4,619
08-05-21 조회 4,971
08-05-20 조회 4,085
08-05-20 조회 3,311
08-04-18 조회 4,382