How to deploy Thinkphp in nginx (reverse proxy) + apache environment?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-16 17:01:05
0
1
916

I want to try this environment:

nginx反向代理,动态php处理pass给apache处理
目前只会thinkphp,所以就只能用到这三个?

当前只能显示localhost/thinkphp/index.php,无法跳转任何模块和控制器。
请问 nginx和apache分别应该如何配置?
曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(1)
小葫芦

This situation is equivalent to nginx acting as a load balancer, and apache is responsible for parsing the PHP code
First of all, the front-end files can be placed directly on nginx to speed up the response.
PHP code is placed on the apache server.
nginx needs to write the .php matching rules, and then nginx configures the load balancing server address and weight.
This way you can respond.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!