우분투서버 셋팅버입니다

· 12년 전 · 2216 · 5

서버 Apache/2.0.55 (Ubuntu) 입니다.

/etc/apache2/apache2.conf 에 httpd.conf,port.conf등을 인클루드하는 형태로 설정을 잡더군요.

질문의 요지는 하나의 ip:80 포트만 사용하여 두개의 도메인을 각각 다른 경로에 세팅해주는 방법입니다.


----------------------------------------

설정 파일가운데 호스트 관련 부분은 아래 내용이 전부입니다.
/etc/apache2/sites-available/default

NameVirtualHost *
<VirtualHost *>
    ServerAdmin master@gaetgol.net
    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개

감사합니다~
감사합니다.
공부의 길은 멀고
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
12년 전 조회 1.2만
12년 전 조회 6,665
12년 전 조회 1,919
12년 전 조회 1,691
12년 전 조회 2,919
12년 전 조회 2,433
12년 전 조회 1,389
12년 전 조회 2,260
12년 전 조회 3,746
12년 전 조회 1,775
12년 전 조회 3,281
12년 전 조회 2,174
12년 전 조회 1,709
12년 전 조회 2,353
12년 전 조회 1,809
12년 전 조회 4,105
12년 전 조회 2,795
12년 전 조회 3,807
12년 전 조회 2,725
12년 전 조회 2,081
12년 전 조회 2,505
12년 전 조회 3,643
12년 전 조회 3,467
12년 전 조회 1,918
12년 전 조회 3,041
12년 전 조회 2,714
12년 전 조회 1,702
12년 전 조회 3,046
12년 전 조회 4,660
12년 전 조회 3,955
12년 전 조회 2,412
12년 전 조회 8,648
12년 전 조회 3,461
12년 전 조회 3,688
12년 전 조회 2,755
12년 전 조회 4,430
12년 전 조회 2,321
12년 전 조회 2,069
12년 전 조회 2,726
12년 전 조회 2,301
12년 전 조회 2,973
12년 전 조회 2,289
12년 전 조회 2,722
12년 전 조회 2,823
12년 전 조회 2,196
12년 전 조회 2,451
12년 전 조회 6,113
12년 전 조회 2,531
12년 전 조회 1,826
12년 전 조회 2,217
12년 전 조회 3,339
12년 전 조회 1,981
12년 전 조회 2,232
12년 전 조회 2,654
12년 전 조회 2,062
12년 전 조회 1,347
12년 전 조회 2,562
12년 전 조회 2,156
12년 전 조회 8,562
12년 전 조회 3,040
12년 전 조회 2,822
12년 전 조회 2,900
12년 전 조회 3,481
12년 전 조회 1,522
12년 전 조회 4,635
12년 전 조회 2,276
12년 전 조회 7,394
12년 전 조회 1,913
12년 전 조회 1,913
12년 전 조회 1,988
12년 전 조회 1,588
12년 전 조회 3,858
12년 전 조회 2,354
12년 전 조회 2,385
12년 전 조회 1,919
12년 전 조회 3,631
12년 전 조회 2,580
12년 전 조회 1,353
12년 전 조회 4,494
12년 전 조회 1,915
12년 전 조회 1,696
12년 전 조회 2,102
12년 전 조회 6,445
12년 전 조회 2,063
12년 전 조회 3,677
12년 전 조회 3,145
12년 전 조회 1,365
12년 전 조회 3,813
12년 전 조회 2,266
12년 전 조회 2,185
12년 전 조회 2,261
12년 전 조회 4,169
12년 전 조회 2,991
12년 전 조회 4,608
12년 전 조회 9,491
12년 전 조회 5,073
12년 전 조회 4,685
12년 전 조회 2,260
12년 전 조회 2,302
12년 전 조회 4,053