Giter VIP home page Giter VIP logo

gateway's People

Contributors

fgnass avatar jmfee-usgs avatar nleclerc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gateway's Issues

When used on windows and node v0.10.26+ the isMalicious check always returns true

Awesome plugin! I have found a bug on windows.

On Windows when using node >= v0.10.26, node will parse ['c:\mypath'] into 'c:\mypath'.
Example:

var path = 'c:\windows\system';
console.log(path);  // 'c:\windows\system'
console.log([path]); // 'c:\\windows\\system' Node automatically adds \ delimiter

This results in your path.indexOf(docroot) to compare a delimited string with a non delimited string, thus always failing

'c:\\windows\\system'.indexOf('c:\windows\system');

I am going to do a pull request with this simple fix, create an array with docroot and get the string out of the array :

// array then index 0 is a windows filesytem fix please do not remove!
path.indexOf([docroot][0])

support documentation

I'm sure this node module works great, and the instructions for installing the prerequisites is there ok, but I for one am having serious difficulty figuring out how I am supposed to use this to modify Yeoman's built-in server task to serve up PHP files. I tried it after installing and no joy, so I assume I may have to make some changes in the Gruntfile, but figuring what changes need to be made (alias the server task, perhaps?), is pretty opaque.

Is there any chance of some more complete documentation on how to make this work with Yeoman, please?

Cheers

D

single entry point for webapps.

Hi, i wonder whehter if this gateway could serve a single entry point?If a request uri is not a real path on server,should it rewrite to the 'index.php'?That means we should check the existment of 'docroot + url.pathname' in the function 'resolveIndexFiles',it may be a file or a directory,if do not exist,rewrite to the 'index.php'.

How can I put the php-cgi in my Windows Path ?

I try to add in my Path , but it doesn't work -.-'
I don't know how I can do to run in Windows u_u

In linux I just ran sudo apt-get install php5-cgi and it worked , but in Windows , I don't know.
How can I do it ?

No PHP errors in log

I am using gateway in my Grunt-based app for tiny PHP script execution like this but have not view PHP errors in console after 'watch' task runned.

Unexpected REQUEST_URI value

When using a rewrite middleware upstream of the gateway handler, the requested may differ from the req.url. You could potentially use req.originalUrl when setting the REQUEST_URI environment variable so it accurately reflects the requested URL rather than the rewritten request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.