컴

우분투서버 셋팅버입니다

· 2013-05-08 (수) 11:12:34 · 4107 · 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건
+
제목 글쓴이 날짜 조회
13-03-03 조회 6,236
13-03-01 조회 5,567
13-03-01 조회 8,309
13-03-01 조회 6,306
13-02-26 조회 3,915
13-02-26 조회 3,858
13-02-26 조회 4,757
13-02-24 조회 8,168
13-02-24 조회 4,257
13-02-24 조회 3,498
13-02-24 조회 5,313
13-02-24 조회 5,306
13-02-24 조회 4,375
13-02-24 조회 5,711
13-02-24 조회 9,399
13-02-14 조회 5,102
13-02-13 조회 9,031
13-01-29 조회 7,676
13-01-24 조회 5,025
13-01-24 조회 4,897
13-01-17 조회 4,313
13-01-16 조회 4,341
13-01-08 조회 4,392
12-12-27 조회 4,056
12-12-20 조회 1.1만
12-12-20 조회 3,376
12-12-06 조회 4,365
12-12-01 조회 4,130
12-11-28 조회 5,695
12-11-25 조회 5,400
12-10-20 조회 4,664
12-10-03 조회 4,827
12-09-26 조회 4,990
12-09-15 조회 8,439
12-09-14 조회 5,456
12-09-11 조회 3,958
12-09-10 조회 3,978
12-09-05 조회 8,855
12-08-29 조회 4,654
12-08-26 조회 3,786
12-08-23 조회 3,486
12-08-22 조회 3,572
12-08-22 조회 4,385
12-08-21 조회 3,534
12-08-20 조회 3,453
12-08-20 조회 9,253
12-08-15 조회 4,372
12-08-13 조회 3,295
12-08-11 조회 4,716
12-08-05 조회 4,557
12-08-03 조회 3,341
12-08-03 조회 4,039
12-08-02 조회 5,017
12-07-29 조회 4,129
12-07-26 조회 3,705
12-07-26 조회 3,574
12-07-22 조회 3,486
12-07-20 조회 3,320
12-07-19 조회 4,183
12-07-19 조회 3,437
12-07-16 조회 3,558
12-07-16 조회 4,477
12-07-15 조회 3,554
12-07-12 조회 7,387
12-07-12 조회 5,025
12-07-11 조회 3,075
12-07-09 조회 3,236
12-07-05 조회 3,846
12-07-04 조회 4,419
12-07-04 조회 3,825
12-07-04 조회 4,348
12-06-29 조회 3,811
12-06-27 조회 3,398
12-06-24 조회 3,876
12-06-22 조회 4,188
12-06-22 조회 8,600
12-06-22 조회 3,251
12-06-21 조회 3,283
12-06-17 조회 3,904
12-06-14 조회 4,009
12-06-14 조회 3,291
12-06-08 조회 4,437
12-06-06 조회 3,399
12-06-04 조회 4,156
12-05-26 조회 4,975
12-05-26 조회 3,928
12-05-25 조회 3,227
12-05-24 조회 3,328
12-05-22 조회 3,373
12-05-20 조회 3,000
12-05-16 조회 3,134
12-05-15 조회 3,531
12-05-10 조회 3,962
12-05-08 조회 3,485
12-05-04 조회 3,336
12-05-03 조회 4,294
12-05-02 조회 3,426
12-05-02 조회 3,199
12-05-02 조회 3,295
12-04-26 조회 3,446