apache能单独执行php.
但与tomcat整合过后无法访问web(jsp)目录下的bbs(php)相关文件.
配置参数如下:
# Load mod_jk-1.2.26-httpd-2.2.4.so
LoadModule jk_module modules/mod_jk-1.2.26-httpd-2.2.4.so# Where to find workers.properties
JkWorkersFile "D:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\workers.properties"# Where to put jk logs
JKLogFile mod_jk.log# Select the log format 
JKLogStampFormat "[%a %b %d %H:%M:%S %Y]"# JkOptions indicate to send SSL KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories# JkRequestLogFormat set the request format 
JkRequestLogFormat "%w %V %T"# Configrue VirtualHost
NameVirtualHost *:8009
DirectoryIndex index.jsp index.html index.htm
ServerAdmin [email protected]
ServerName localhost
JkMount /* ajp13 
JkAutoAlias "D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps"
需要添加哪些项才能确保能够正常访问.

解决方案 »

  1.   

    [code=]
    apache能单独执行php.
    [/code]
     你怎么做到的?
      

  2.   

    apache能单独执行php.
    你怎么做到的?
    楼上提交错误
      

  3.   

    apache已经与php单独整合完成,php论坛单独执行正常.
    但与tomcat整合就无法访问了.
      

  4.   

    要能访问对应目录的php程序,你需要配置apache服务器能够有权限访问哪个目录,并且在apache中对该目录进行配置才行.
      

  5.   

    我是新手,照书上的弄个xampp在电脑上就集成了这些东西,用起来还可以
      

  6.   

    如何实现通过通一个端口实现jsp\php的访问.
      

  7.   

    怎么会呢?是不是都转发给 jk worker 了???