编程语言
首页 > 编程语言> > Python PHP Lighttpd?

Python PHP Lighttpd?

作者:互联网

我今天已经设置了一些Web服务器,但是我不确定它们在内部如何工作.我正在为自己设置一个新的环境,并且对配置lighttpd服务器以支持PHPPython感兴趣.这可能吗?

解决方法:

是的,这是可能的. Here可以找到一个示例配置.

fastcgi.server = (
".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket"
)),
"django.fcgi" => (
"main" => (
"host" => "127.0.0.1",
"port" => 9090, #set the port numbers to what-eva you want
),
),
"admin.fcgi" => (
"admin" => (
"host" => "127.0.0.1",
"port" => 9091,
)
)
)

标签:lighttpd,configure,python,php
来源: https://codeday.me/bug/20191107/2004036.html