Answer the question
In order to leave comments, you need to log in
fastcgiqt + nginx
Does anyone have experience linking fastcgiqt with nginx?
What worked for me was just running the fastcgiqt application as HTTP (not -FCGI-TCP or FCGI-UNIX) on port 9010 and proxying through proxy_pass:
server {
listen 127.0.0.1:80;
server_name lolhost;
location /fias {
proxy_pass http://127.0.0.1:9010/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
...
server {
listen *:80;
Answer the question
In order to leave comments, you need to log in
Thanks for the help. I sort of figured out the hosts.
but with fastcgi_pass it doesn’t work ...
if you use fastcgi_pass , here are the values \u200b\u200bthat the fastcgiqt application gives out:
location /fias {
fastcgi_pass 127.0.0.1:9010;
include fastcgi.conf;
}
Root URL:
http://lolhost/fias/lol
Location URL:
http://lolhost/fias/lol
Full URL:
http://lolhost/fias/lol?
location /fias {
proxy_pass http://127.0.0.1:9010/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Root URL:
http://lolhost
Location URL:
http://lolhost//lol
Full URL:
http://lolhost//lol
Yes, I think we need to contact the developer of the fastcgiqt library directly , maybe he will provide the config ...
here is a look at the sources how the RootUrl is formed
case RootUrl:
{
const int pathInfoLength = rawValue(ServerData, "PATH_INFO").length();
QByteArray basePath = rawValue(ServerData, "REQUEST_URI");
basePath.chop(queryStringLength + pathInfoLength);
url.setEncodedPath(basePath);
break;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question