컴

우분투서버 셋팅버입니다

· 2013-05-08 (수) 11:12:34 · 4112 · 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-09-05 조회 7,413
12-08-31 조회 5,856
12-08-30 조회 6,624
12-08-22 조회 1.2만
12-08-09 조회 5,650
12-08-02 조회 3,726
12-07-30 조회 4,090
12-07-15 조회 3,725
12-07-10 조회 3,624
12-07-06 조회 3,454
12-07-06 조회 3,438
12-07-03 조회 4,034
12-07-03 조회 3,522
12-07-02 조회 3,421
12-06-25 조회 3,918
12-06-20 조회 3,283
12-06-15 조회 3,871
12-06-14 조회 3,134
12-06-08 조회 3,923
12-06-07 조회 3,911
12-06-05 조회 5,784
12-06-05 조회 3,528
12-06-04 조회 3,868
12-06-01 조회 4,068
12-06-01 조회 4,803
12-06-01 조회 3,668
12-05-30 조회 3,198
12-05-28 조회 3,178
12-05-23 조회 3,281
12-05-18 조회 3,190
12-05-16 조회 3,240
12-05-16 조회 3,203
12-05-16 조회 4,470
12-05-16 조회 2,993
12-05-16 조회 2,981
12-05-16 조회 3,375
12-05-16 조회 3,138
12-05-16 조회 3,031
12-05-15 조회 3,199
12-05-15 조회 2,879
12-05-15 조회 3,122
12-05-15 조회 3,566
12-05-15 조회 3,296
12-05-15 조회 2,667
12-05-14 조회 2,713
12-05-14 조회 2,877
12-05-14 조회 2,849
12-05-14 조회 3,153
12-05-14 조회 2,981
12-05-11 조회 3,268
12-05-11 조회 2,798
12-05-11 조회 2,701
12-05-11 조회 2,811
12-05-11 조회 3,379
12-05-11 조회 2,560
12-05-10 조회 3,965
12-05-10 조회 2,809
12-05-10 조회 2,741
12-05-10 조회 2,882
12-05-10 조회 4,484
12-05-10 조회 2,521
12-05-10 조회 2,617
12-05-10 조회 2,480
12-05-10 조회 2,737
12-05-10 조회 3,186
12-05-10 조회 3,474
12-05-10 조회 2,711
12-05-10 조회 2,831
12-05-10 조회 3,323
12-05-10 조회 2,912
12-05-08 조회 3,103
12-05-08 조회 2,920
12-05-08 조회 2,945
12-05-08 조회 3,329
12-05-08 조회 4,518
12-05-03 조회 2,902
12-05-03 조회 3,006
12-05-03 조회 2,777
12-05-03 조회 3,833
12-05-03 조회 2,883
12-05-02 조회 2,923
12-04-27 조회 2,812
12-04-27 조회 2,882
12-04-27 조회 2,792
12-04-26 조회 2,754
12-04-26 조회 3,109
12-04-26 조회 3,044
12-04-26 조회 2,712
12-04-26 조회 3,037
12-04-26 조회 3,646
12-04-26 조회 2,921
12-04-26 조회 3,582
12-04-26 조회 2,644
12-04-26 조회 2,981
12-04-26 조회 2,717
12-04-26 조회 2,959
12-04-26 조회 2,724
12-04-26 조회 3,146
12-04-26 조회 3,188
12-04-26 조회 3,005