主题 : apacge+tomcat 配置jeecms
级别: 秀才
UID: 1630
积分:27 加为好友
威望: 0 精华: 0
主题:2 回复:13
注册时间:2010-01-15
在线时长:0
1#   发表于:2010-04-14 15:55:48  IP:124.13.*.*
apacge+tomcat 配置jeecms后报
Forbidden
You don't have permission to access /jeecms/ on this server.
--------------------------------------------------------------------------------

Apache/2.0.59 (Win32) PHP/5.2.0 mod_jk/1.2.23 Server at 127.0.0.4 Port 8090

请问需要加哪些特别的设置吗?我用的jeecms版是2.4.2
如果在/jeecms上下文根下,只放一个index.jsp主页,内容为<%out.pirntln("ok")%>
是可以正常运行,而且也可以在页面输出ok字样
级别: 白丁
UID: 3
积分:2415 加为好友
威望: 0 精华: 0
主题:23 回复:1614
注册时间:2009-06-02
在线时长:0
2#   发表于:2010-04-14 20:23:44  IP:59.244.*.*
apache和tomcat的整合是否正确? 
单独用tomcat端口访问jeecms可以正常显示吗?
生命在于折腾!
级别: 秀才
UID: 1630
积分:27 加为好友
威望: 0 精华: 0
主题:2 回复:13
注册时间:2010-01-15
在线时长:0
3#   发表于:2010-04-15 10:02:06  IP:124.13.*.*
apache,tomcat配置是正确的.我已经测试过了,用tomcat也可以直接访问jeecms
级别: 秀才
UID: 1630
积分:27 加为好友
威望: 0 精华: 0
主题:2 回复:13
注册时间:2010-01-15
在线时长:0
4#   发表于:2010-04-15 10:09:56  IP:124.13.*.*
apache和tomcat的整合是否正确? 
单独用tomcat端口访问jeecms可以正常显示吗?


apache,tomcat配置是正确的.我已经测试过了,用tomcat也可以直接访问jeecms

就是apaceh+tomcat不行.报,禁止访问.apache,相关配置如下


Alias /jeecms  C:/xx/xx/jeecms
<VirtualHost 127.0.0.4:8090>
 DocumentRoot C:/xx/xx/jeecms
 #您的站点项目所在路径,应与tomcat中的目录设置相同
 ServerName 127.0.0.4:8090
 ErrorLog logs/shsc-error_log.txt
 CustomLog logs/shsc-access_log.txt common
 JkMount /servlet/* ajp13 
 #让Apache支持对servlet传送,用以Tomcat解析
 JkMount /*.jsp ajp13 
 #让Apache支持对jsp传送,用以Tomcat解析
 JkMount /*.do ajp13 
 JkMount /*.action ajp13
 JkMount /*.* ajp13
 #让Apache支持对.do传送,用以Tomcat解析
</VirtualHost>

<Directory "C:/xx/xx/jeecms">
    Options FollowSymLinks   
    AllowOverride  FileInfo   
    Order allow,deny   
    Allow from all   
</Directory>

tomcat配置文件里,一定是正确的,我就不往上贴了.
级别: 白丁
UID: 5737
积分:5 加为好友
威望: 0 精华: 0
主题:0 回复:4
注册时间:2010-04-17
在线时长:0
5#   发表于:2010-04-17 09:47:24  IP:112.253.*.*
Hi,Man.
I think you config the apache server incorrectly.

You can have a try.

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/xx/xx/jeecms"

# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>(This section no need to change.)


# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/A_D_dick_develop/eclipse_php_project">
    #
    # 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.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks Includes ExecCGI

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>
1 共1页