connect.static() interpret PHP files with node.js and connect -
i configured node connect , nowjs. calling localhost:8001/test.html , localhost:8001/chat.html works without problems. when calling php-file localhost:8001/test.php browser wants me download file. connect.static won't interpret php file. there other possibility work html , php files? thanks
var http = require('http'); var connect = require('connect'); var nowjs = require("now"); var app = connect(); app.use(connect.static('/var/www/www.domain.com/htdocs')); app.use(function(req, res){ res.end(); }); var server = http.createserver(app).listen(8001); var = nowjs.initialize(server);
Comments
Post a Comment