Php equivalent of "virtual ()" function for nginx

Is there any php function for nginx that works the same as "virtual ()" for apache?

+4
source share
2 answers

No no. Unlike Apache, nginx does not use a module to communicate with PHP. Although this is good, it has negative disadvantages such as this.

Can I recommend using include or file_get_contents instead?

+3
source

From the PHP virtual () documentation:

* Virtual () is an Apache-specific function, similar to the mod_include function. It performs an Apache subquery. This is useful for including CGI scripts or .shtml files, or anything else that you would parse through Apache. Note that for a CGI script, the script must generate valid CGI headers. *

It should be http://wiki.nginx.org/HttpSsiModule

This module provides a filter that processes the server side (SSI) at the input. The list of supported commands for SSI is not yet complete.

+2
source

All Articles