×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

Apache 2.0. 与tomcat2.1.47相连, apache端 httpd.conf始终定义不对,不知道有没有哪位专家能指点一二. (Tomcat 端已经定义好了,apache 2.0好像AddModule directive 没有了.LoadModule 还有.多谢指点, 请进.

比如 http://localhost/abc.jsp 希望apache能把它forward到tomcat解释.
作为您的参考, 我特意附上一段 default definition. 我到底该摘掉那些,添加 什么呢? apache 和tomcat 在同一machine.


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

#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
# Order deny,allow
# Deny from all
# Allow from .your-domain.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
#CacheRoot "/etc/httpd/proxy"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a-domain.com another-domain.edu joes.garage-sale.com

#</IfModule>
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / Apache 2.0. 与tomcat2.1.47相连, apache端 httpd.conf始终定义不对,不知道有没有哪位专家能指点一二. (Tomcat 端已经定义好了,apache 2.0好像AddModule directive 没有了.LoadModule 还有.多谢指点, 请进.
    比如 http://localhost/abc.jsp 希望apache能把它forward到tomcat解释.
    作为您的参考, 我特意附上一段 default definition. 我到底该摘掉那些,添加 什么呢? apache 和tomcat 在同一machine.


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

    #<IfModule mod_proxy.c>
    #ProxyRequests On
    #
    #<Proxy *>
    # Order deny,allow
    # Deny from all
    # Allow from .your-domain.com
    #</Proxy>

    #
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    #
    #ProxyVia On

    #
    # To enable the cache as well, edit and uncomment the following lines:
    # (no cacheing without CacheRoot)
    #
    #CacheRoot "/etc/httpd/proxy"
    #CacheSize 5
    #CacheGcInterval 4
    #CacheMaxExpire 24
    #CacheLastModifiedFactor 0.1
    #CacheDefaultExpire 1
    #NoCache a-domain.com another-domain.edu joes.garage-sale.com

    #</IfModule>
    • 我真服了你了,什么都学
      • 而且看样子还都是要速成
    • Apache和tomcat相连需要用mod_jk或mod_webapp
      • thank you, dennis2. 一点兴趣. 谢谢你的回答.