grunt-contrib-connect代理给出错误500.如何debugging?

我想代理http:// localhost:9000 / images和http:// localhost:9000 / rest到https:// remotehost / images和https:// remotehost / rest,但是我得到两个错误500。 我究竟做错了什么? 如何debugging呢? 这是我的configuration:

connect: { options: { port: 9000, // Change this to '0.0.0.0' to access the server from outside. hostname: 'localhost', livereload: 35729 }, proxies: [ { context: '/images', host: remotehost, port: 443, https: true, changeOrigin: true, xforward: false, rejectUnauthorized: false } ], livereload: { options: { open: true, base: [ '.tmp', '<%= yeoman.app %>' ], middleware: function (connect, options) { if (!Array.isArray(options.base)) { options.base = [options.base]; } // Setup the proxy var middlewares = [require('grunt-connect-proxy/lib/utils').proxyRequest]; // Serve static files. options.base.forEach(function(base) { middlewares.push(connect.static(base)); }); // Make directory browse-able. var directory = options.directory || options.base[options.base.length - 1]; middlewares.push(connect.directory(directory)); return middlewares; } } }, 

我试图debugging这个运行咕噜服务 – debuggingbug我没有得到任何额外的信息,为什么我得到这个错误。 谢谢! https://github.com/gruntjs/grunt-contrib-connect/issues/176