컴

우분투서버 셋팅버입니다

· 2013-05-08 (수) 11:12:34 · 4039 · 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건
+
제목 글쓴이 날짜 조회
13-06-19 조회 8,365
13-06-18 조회 4,984
13-06-17 조회 6,108
13-06-17 조회 3,879
13-06-16 조회 6,192
13-06-15 조회 1.4만
13-06-15 조회 8,901
13-06-15 조회 3,979
13-06-15 조회 3,602
13-06-14 조회 4,788
13-06-14 조회 4,521
13-06-14 조회 3,218
13-06-13 조회 4,133
13-06-13 조회 5,587
13-06-11 조회 3,646
13-06-06 조회 5,375
13-06-05 조회 4,107
13-06-05 조회 3,551
13-06-05 조회 4,315
13-06-04 조회 3,680
13-06-04 조회 6,092
13-05-31 조회 4,809
13-05-30 조회 5,855
13-05-29 조회 4,709
13-05-27 조회 3,959
13-05-24 조회 4,460
13-05-23 조회 5,745
13-05-22 조회 5,445
13-05-21 조회 3,957
13-05-21 조회 4,971
13-05-21 조회 4,496
13-05-21 조회 3,539
13-05-21 조회 4,908
13-05-20 조회 6,645
13-05-20 조회 6,002
13-05-20 조회 4,486
13-05-19 조회 1.1만
13-05-18 조회 5,490
13-05-18 조회 5,654
13-05-18 조회 4,739
13-05-18 조회 6,485
13-05-17 조회 4,460
13-05-14 조회 4,053
13-05-14 조회 4,777
13-05-12 조회 4,377
13-05-11 조회 4,841
13-05-10 조회 4,404
13-05-10 조회 4,611
13-05-10 조회 4,621
13-05-10 조회 4,019
13-05-10 조회 4,181
13-05-09 조회 8,357
13-05-08 조회 4,355
13-05-08 조회 3,624
13-05-08 조회 4,040
13-05-08 조회 5,210
13-05-07 조회 4,015
13-05-07 조회 4,358
13-05-06 조회 4,568
13-05-03 조회 3,927
13-05-03 조회 3,093
13-05-03 조회 4,560
13-05-03 조회 4,163
13-05-02 조회 1만
13-05-02 조회 4,842
13-05-01 조회 4,647
13-05-01 조회 4,800
13-04-29 조회 5,185
13-04-29 조회 3,310
13-04-27 조회 6,626
13-04-26 조회 4,372
13-04-26 조회 9,488
13-04-26 조회 3,958
13-04-22 조회 3,754
13-04-19 조회 3,600
13-04-19 조회 3,320
13-04-19 조회 5,509
13-04-19 조회 4,259
13-04-17 조회 4,534
13-04-16 조회 3,884
13-04-15 조회 5,450
13-04-15 조회 4,366
13-04-15 조회 3,126
13-04-13 조회 6,389
13-04-13 조회 3,753
13-04-12 조회 3,713
13-04-11 조회 3,848
13-04-10 조회 8,504
13-04-09 조회 4,023
13-04-08 조회 5,473
13-04-08 조회 4,857
13-04-08 조회 3,099
13-04-08 조회 5,629
13-04-07 조회 4,148
13-04-05 조회 4,257
13-04-05 조회 4,116
13-04-05 조회 6,004
13-04-05 조회 4,791
13-04-05 조회 6,490
13-04-05 조회 1.1만