开发者

Configuring PHP in IIS with Tomcat

开发者 https://www.devze.com 2023-01-02 04:59 出处:网络
I have my Java site running under IIS 7. I need to install wordpress blog in it. I\'ve installed and configured PHP in IIS. I have tested the PHP handler by creating a separate site, everything works

I have my Java site running under IIS 7. I need to install wordpress blog in it. I've installed and configured PHP in IIS. I have tested the PHP handler by creating a separate site, everything works fine, phpinfo() gives the desired output.

H开发者_开发问答owever, I'm having problem running the PHP files inside my Java web application. I've put my test PHP file inside a folder called blog. When I access this folder in the browser as /mysite/blog I get a 404 page from my Java application. When I try to invoke the php page directly, http://mysite/blog/index.php, I get an unprocessed php page.

I'm using isapi_handler for the reidrects. How do I tell my isapi_handler to ignore /blog folder? In my IIS handler mapping, *.php is mapped with Fast CGI. I'm not sure how to approach this problem and any help on this would be much appreciated.

Thanks in advance.


Excluding the blog directory from uriworkermap.properties seems to solve my problem. Here is the line I added to uriworkermap.properties -

!/mysite/blog/*=tomcat

This tells the isapi_redirect to ignore /blog folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号