On 11-ene-09, at 13:17, Ivo Ugrina wrote: > I have a question. Is there a way to make cherokee > behave like apache when dealing with php source (.phps) > files? > > Proper mime type (application/x-httpd-php-source) is > in cherokee.conf and if it was apache it would read > it and then send the file to mod_php which would > beutify it and send it as text/html.
Setting the .phps extension is quite straightforward: - First of all, you have to add a new Information Source. Something like this would work: o Interpreter: php-cgi -s -b localhost:9988 o Connection: localhost:9988 - Then, go to the virtual server behavior rules and add a new phps extension. Set it to use FastCGI linked with the Information Source you just created. The key point is that, you need to launch a php-cgi with the -s parameter. -- Octality http://www.octality.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
