Problem with a virtualhost
mike
mike503 at gmail.com
Sun Sep 7 01:20:13 MSD 2008
On Sat, Sep 6, 2008 at 7:32 AM, David <mishy.cth at gmail.com> wrote:
> location ~ \.php$ {
> fastcgi_pass 127.0.0.1:9000;
> }
just for cleanup/simplicity...
you can put these into fastcgi_params:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_intercept_errors on;
and this can be included only once globally (or, you can just put the
contents directly into http {} just once and skip having a separate
file)
include /usr/local/nginx/fastcgi_params;
:)
More information about the nginx
mailing list