Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyperfastcgi in nginx default server #87

Open
maggedotno opened this issue Oct 30, 2018 · 0 comments
Open

hyperfastcgi in nginx default server #87

maggedotno opened this issue Oct 30, 2018 · 0 comments

Comments

@maggedotno
Copy link

maggedotno commented Oct 30, 2018

First: Sorry if this question turns out to be more about nginx and less about hyperfastcgi.

I'm trying to set up nginx with one/default server pointing to hyperfastcgi, thinking that hyperfastcgi can recognize which app to serve based on the incoming URL. Is this possible?

My nginx config has this currently:

server {
        listen 80;

        access_log /var/log/nginx/access.log;
        root /var/www;

        location / {
                aio threads;
                rewrite ^/(.*)/$ /$1 permanent;
                index index.html;
                fastcgi_index index.aspx;
                fastcgi_keep_conn on;
                fastcgi_pass fastcgi_backend;
                include /etc/nginx/fastcgi_params;

                fastcgi_split_path_info ^((?U).+\.as.x)(/?.+)$;
                fastcgi_param PATH_INFO $fastcgi_path_info;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
}

...as you can see my root dir in nginx was meant to be just a dummy, but since SCRIPT_FILENAME uses it, it means that this config only gives me 404s. I tried commenting out the SCRIPT_FILENAME line with no different result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant