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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -