Questions tagged [fastcgi]

FastCGI is an open interface web servers can use to execute applications in a secure and isolated manner.

FastCGI is an open interface web servers can use to run applications as separate isolated processes. It is an enhancement of the original NCSA CGI interface specification, with a range of improvements. The primary improvement over the standard CGI approach offered by FastCGI is performance, hence the name.

FastCGI is supported by a broad range of Web Servers (such as Apache, nginx, lighttpd).

730 questions
2
votes
0 answers

mod_fcgid: can't apply process slot for - error repeats every 6 hour

On server, I run Apache via FastCGI using PHP 7.4.13: /etc/httpd/conf.d/ is configured as this: # Use FastCGI to process .fcg .fcgi & .fpl scripts AddHandler fcgid-script fcg fcgi fpl # Sane place to put sockets and shared memory file FcgidIPCDir…
Martin Perry
  • 129
  • 3
2
votes
1 answer

Is it possible to configure nginx to just handle SSL?

I have a web server written in C++ already, but it uses TCP sockets without SSL. I want to connect it to the web, but I want to use something like nginx to handle the SSL, and also basic security like DDOS protection, smurf attack protection,…
CaptainCodeman
  • 227
  • 2
  • 10
2
votes
2 answers

Nginx + PHP FASTCGI FAILS - how to debug?

I have a server on AMAZON EC2 running Nginx +PHP with PHP FASTCGI via port 9000. The server runs fine for a few minutes and after a while (several thousands of hits in this case) FastCGI Dies and Nginx returns 502 Error. Nginx log shows 2010/01/12…
Niro
  • 1,401
  • 4
  • 20
  • 36
1
vote
1 answer

Matching redirected nginx requests from original path

My current configuration rewrites all php pages to /index.php?$query_string, I need this to work for a specific path, but when using a location block for this, once the path has been rewritten it no longer matches. Is there a way to to forward a…
johnramsden
  • 131
  • 1
  • 4
1
vote
1 answer

Loading css from cgit on nginx in a subdirectory

before I start I should note that I have absolutely no experience with nginx or networking, so what I have done was thanks to searching and trying different solutions. I have a problem I struggle with for 1 hour now. I'm trying to setup cgit on…
lyna
  • 11
  • 1
1
vote
1 answer

Nginx fastcgi cache in different location block

I am trying to cache different location with different cache keyzone but it is not working. Cache is only working for the root "/" location. If I turn off the cache for location "/" then still it does not work for other location. Http…
JKhan
  • 127
  • 7
1
vote
0 answers

git-http-backend blocking with fastcgi on nginx

I have git-http-backend serving git repos through an nginx fastcgi proxy. The nginx config looks like: server { listen 443 ssl; server_name git.example.com; auth_basic "Git Access"; …
trbabb
  • 131
  • 3
1
vote
1 answer

nginx rewrite rule to overwrite $uri as well

I have an URL like ^/d/something/(.*)$, what I want to do is rewrite it internally, with no permanent or temporary HTTP redirect, so that $_SERVER['REQUEST_URI'] will have just $1 and not the whole ^/d/something/(.*)$. Using nginx. Here is what I…
Alexey
  • 49
  • 3
  • 16
1
vote
1 answer

FastCGI to improve TTFB when Using NGINX to reverse proxy?

I'm trying to improve time to first byte. HTTP2 helped a lot, but TTFB is still between 500-700ms. I'd like to bring it down to around 200. I saw some suggestions to use FastCGI. I have a bit of a tricky setup so I'm trying to understand where/how I…
geochanto
  • 157
  • 1
  • 9
1
vote
1 answer

Nginx - rewrite fastcgi_param for one specific route

I want to change fastcgi_param only for specific routes as described below: server { # (...) # PHP entry point for main application location ~ ^/(index|get|static|errors/report|errors/404|errors/503|health_check)\.php$ { …
dudzio
  • 111
  • 1
1
vote
0 answers

Apache2 executes PHP only implicitly, not when explicitely opened

I am facing a rather strange behavior. I have placed a simple phpinfo test script (see below) as index.php in the root directory of my domain. When I open it as www.example.com in the browser, it loads correctly. However, when I open it as…
Aileron79
  • 259
  • 1
  • 7
1
vote
2 answers

Line breaks in PHP's stack trace in nginx error logs disturbing logstash analysis

I am using nginx with PHP-FPM and ELK as log file analysis. When a PHP script causes an error the interpreter the error will be send back to nginx and nginx puts the error into the error.log file. Problem is: Sometimes those error logs contains…
n.r.
  • 289
  • 1
  • 2
  • 10
1
vote
0 answers

nginx pfp-fpm - "No input file specified." when serving files from /home/user/**

I have a setup where the user uploads multiple PHP sites to a projects folder in the user's home directory (/home/{user}/projects). And the sites are individually configured; serving things like Wordpress, Core-PHP sites, Laravel etc. The OS is…
Sakibul Alam
  • 111
  • 4
1
vote
0 answers

PHP FastCGI reading php flags from .htaccess? How?

I'm doing some changes on a website hosted on a managed dedicated server from Hetzner and I found that somehow some php flags set in .htaccess are passed to PHP running as fastCGI. As far as I was aware, fastCGI/FPM flags need to be set in php.ini,…
Augusto
  • 225
  • 2
  • 10
1
vote
1 answer

Does nginx support FastCGI local redirect responses?

RFC 3875 specifies a Local Redirect Response, which, in short says: If the script sends a "Location:" header with a local path (i.e. starting with /, not with a protocol) and a Status Code 200 header, then the web server should interpret and fulfil…
Stefan S
  • 33
  • 4