Ok wizards.... 

Nginx Lighttpd Fast-cgi and PHP5

seems all configured, yet when i point a browser at a php page 
it tries to download the file, instead of render it in the browser,
any ideas what i missed

#user  nobody;
worker_processes  1;

events {
    worker_connections  1024;

http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;

    keepalive_timeout  65;

    server {
        listen       80;
        server_name  localhost;

        location / {
            root   /usr/local/www/nginx;
            index  index.html index.php index.htm;

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /usr/local/www/nginx-dist;

# .php5 sent to php5
    location ~ .*\.php5$ {
    include /usr/local/etc/nginx/fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /$fastcgi_script_name;

/usr/local/sbin/spawn-fcgi -f /usr/local/bin/php-cgi -a -p 9000 -u www

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to