Code Monkey home page Code Monkey logo

Comments (5)

echampet avatar echampet commented on June 7, 2024

see #7

from hyperfastcgi.

xplicit avatar xplicit commented on June 7, 2024

That was commented out due to these settings
http://mono-project.com/FastCGI_Nginx

fastcgi_param  PATH_INFO          "";
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;

So PATH_INFO is required to be set to empty string. If you have a test case, which shows that setting path info to empty string is incorrent, I'll change it back.

from hyperfastcgi.

echampet avatar echampet commented on June 7, 2024

hi @xplicit,
These settings are exemples, and i'm affirmative that PATH_INFO is working with fastcgi-mono-server
My patch in #7 is fixing it for me.
For a small test case you'll have to wait until monday

from hyperfastcgi.

xplicit avatar xplicit commented on June 7, 2024

You're right. I was confused by empty PATH_INFO string in fastcgi_params and missed that PATH_INFO is set in other bunch of code. Could you share, how did you configure nginx fastcgi_param to make the patch working for you?

I checked how PATH_INFO worked for xsp (it uses same algorithm as fastcgi-mono-server), and got results:

page: Default.aspx
request: /Default.aspx/test
Request.PathInfo: /test

HttpHandler: <add verb="" path=".sample" type="HelloWorldHandler"/>
request: /123.sample/test
Request.PathInfo: /test

request: /123.sample/123.sample/test
Request.PathInfo: /test

HttpHandler: <add verb="" path="hello" type="HelloWorldHandler"/>
request: /hello/test
Request.PathInfo: (empty string)

looking very strange. Very intresting, how it works on IIS.

from hyperfastcgi.

echampet avatar echampet commented on June 7, 2024

Hi @xplicit
Here is an extract of my nginx conf

include fastcgi_params;
fastcgi_index PageLogin.aspx;
fastcgi_split_path_info ^((?U).+\.as.x)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

from hyperfastcgi.

Related Issues (20)

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.