Dynamic resolution
This commit is contained in:
parent
6d5bf66804
commit
10962ea40b
@ -1,12 +1,15 @@
|
|||||||
server {
|
server {
|
||||||
root /srv/app/public;
|
root /srv/app/public;
|
||||||
resolver 127.0.0.11;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
# try to serve file directly, fallback to index.php
|
# try to serve file directly, fallback to index.php
|
||||||
try_files $uri /index.php$is_args$args;
|
try_files $uri /index.php$is_args$args;
|
||||||
}
|
}
|
||||||
location ~ ^/index\.php(/|$) {
|
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_pass app:9000;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user