Dynamic resolution

This commit is contained in:
Kévin Dunglas 2017-07-17 08:42:52 +02:00
parent 6d5bf66804
commit 10962ea40b
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6

View File

@ -1,12 +1,15 @@
server {
root /srv/app/public;
resolver 127.0.0.11;
location / {
# try to serve file directly, fallback to index.php
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
#resolver 127.0.0.11;
#set $upstream_host app;
#fastcgi_pass $upstream_host:9000;
# Uncomment the previous lines and comment the next one to enable dynamic resolution (incompatible compatible with Kubernetes)
fastcgi_pass app:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;