출처 * 프로그래머 하얀별의 블로그 ^^* | 하얀별
원문 http://blog.naver.com/wono77/140015426368

(첨부파일에 그림과 함께 조금더 설명이 있음)

 

C:\Program Files\Apache Group\Apache2\conf 폴더 안에 있는 httpd.conf파일에 약간의 첨부만 해주시면 됩니다.

 

1. 아파치의 port 변경을 원하시면

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

# Listen: Allows you to bind Apache to specific IP addresses and/or

# ports, instead of the default. See also the <VirtualHost>

# directive.

#

# Change this to Listen on specific IP addresses as shown below to

# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)

#

#Listen 12.34.56.78:80

Listen 8080

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

이 부분의 port를 변경합니다.

ex) Listen 8080 -> 80 으로 변경 시, 브라우저에서 호출시 port를 안 써주셔도 됩니다.

 

 

2. ServerName 수정

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

# ServerName gives the name and port that the server uses to identify itself.

# This can often be determined automatically, but we recommend you specify

# it explicitly to prevent problems during startup.

#

# If this is not set to valid DNS name for your host, server-generated

# redirections will not work.  See also the UseCanonicalName directive.

#

# If your host doesn't have a registered DNS name, enter its IP address here.

# You will have to access it by its address anyway, and this will make

# redirections work in a sensible way.

#

ServerName localhost:80

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

 

3. httpd.conf 파일의 마지막 부분에 다음을 추가해 줍니다.

# plugin 모듈 지정

LoadModule weblogic_module C:\bea\weblogic81\server\bin\mod_wl_20.so

 

# 특정한 url 패턴에 대해서 forwarding 하도록 ,  servlet인 경우

<Location /HelloworldServlet>

  SetHandler weblogic-handler

</Location>

<IfModule mod_weblogic.c>

# 웹로직 인스턴스가 1개 인 경우

 WebLogicHost localhost

 WebLogicPort 7001

# 웹로직 인스턴스가 2개 이상인 경우

# WebLogicCluster localhost:7001,localhost:8001

# 확장자가 .jsp인 요청에 대해서 forwarding 하도록

 MatchExpression *.jsp

# 기타 옵션

 ConnectTimeoutSecs 20

 ConnectRetrySecs 20

</IfModule>

 

4. mime.types 파일에 첨가

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

text/directory

text/enriched

text/jsp                               jsp

text/html                                        html htm

text/parityfec

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

 

5. 아파치 서버 재시작 후 확인.

,