Skip to content

Instantly share code, notes, and snippets.

@Scemist
Created December 20, 2022 14:21
Show Gist options
  • Save Scemist/e48049b6b9aa077fe4d3b34f049de441 to your computer and use it in GitHub Desktop.
Save Scemist/e48049b6b9aa077fe4d3b34f049de441 to your computer and use it in GitHub Desktop.
Nginx Config with FPM PHP
server {
listen 0.0.0.0:80;
index index.php index.html;
root /app/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment