서버/아파치2016. 12. 14. 17:09

#DocumentRoot "/tutorData/stu/tomcat7/webapps/gan"

#<Directory "/tutorData/stu/tomcat7/webapps/gan">

    #

    # Possible values for the Options directive are "None", "All",

    # or any combination of:

    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

    #

    # Note that "MultiViews" must be named *explicitly* --- "Options All"

    # doesn't give it to you.

    #

    # The Options directive is both complicated and important.  Please see

    # http://httpd.apache.org/docs/2.4/mod/core.html#options

    # for more information.

    #

#    Options Indexes FollowSymLinks


    #

    # AllowOverride controls what directives may be placed in .htaccess files.

    # It can be "All", "None", or any combination of the keywords:

    #   AllowOverride FileInfo AuthConfig Limit

    #

#    AllowOverride None


    #

    # Controls who can get stuff from this server.

    #

#    Require all granted

#</Directory>



DocumentRoot ,Directory 관련 전부 다 주석표시


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


#Include conf/extra/httpd-vhosts.conf   -- httpd-vhosts.conf 주석



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


맨밑에 추가

<VirtualHost *:80>    -- 1번 톰캣
        ServerAdmin abctutor@abctutor.com
ServerName test.abctutor.com
ServerAlias test.abctutor.com
Redirect / https://test.abctutor.com

<Directory /tomcat7/webapps/gan>   -- 프로젝트 위치
Order allow,deny
Allow from all
</Directory>
JkMount /* loadbalancer                  -- 클러스터링 중일시 이렇게 맞추기
JkMount /servlet/* loadbalancer
</VirtualHost>

<VirtualHost *:80>   -- 2번 톰캣
        ServerAdmin myabctalk@myabctalk.com
ServerName www.myabctalk.com
ServerAlias www.myabctalk.com myabctalk.com   -- 두개로 hostNmae접속시 www.myabctalk.com으로 접속됨
<Directory /tomcatAPI/webapps/API>          -- 프로젝트 위치
Order allow,deny
Allow from all
</Directory>
JkMount /* workerApi1          -- 클러스터링 아닐 시 worker.properties에서 정한 이름으로 JkMount에 등록  
JkMount /*.jsp workerApi1
JkMount /servlet/* workerApi1
</VirtualHost>




Posted by 고니킹