summaryrefslogtreecommitdiffstats
path: root/.examples
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2018-08-16 17:59:03 +0200
committerTilo Spannagel <development@tilosp.de>2018-08-16 17:59:03 +0200
commit71b4d891f8a0638d7b05e1b64421f4dd777378a4 (patch)
tree3b17f3e6a50df82efb5e3ba45fbca7f23a2d8046 /.examples
parent76ca281e03683abc4db98c087adac34084a5a877 (diff)
Use $request_uri instead of $uri in nginx config
Signed-off-by: Tilo Spannagel <development@tilosp.de>
Diffstat (limited to '.examples')
-rw-r--r--.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf6
-rw-r--r--.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf6
-rw-r--r--.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf6
-rw-r--r--.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf6
-rw-r--r--.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf6
-rw-r--r--.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf6
-rw-r--r--.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf6
7 files changed, 21 insertions, 21 deletions
diff --git a/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf
index 0b6fb89b..a69f23cc 100644
--- a/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf
+++ b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/web/nginx.conf
@@ -89,7 +89,7 @@ http {
#pagespeed off;
location / {
- rewrite ^ /index.php$uri;
+ rewrite ^ /index.php$request_uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
@@ -121,7 +121,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
@@ -145,7 +145,7 @@ http {
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}
diff --git a/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf
index 0b6fb89b..a69f23cc 100644
--- a/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf
@@ -89,7 +89,7 @@ http {
#pagespeed off;
location / {
- rewrite ^ /index.php$uri;
+ rewrite ^ /index.php$request_uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
@@ -121,7 +121,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
@@ -145,7 +145,7 @@ http {
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}
diff --git a/.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf b/.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf
index 0b6fb89b..a69f23cc 100644
--- a/.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf
+++ b/.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf
@@ -89,7 +89,7 @@ http {
#pagespeed off;
location / {
- rewrite ^ /index.php$uri;
+ rewrite ^ /index.php$request_uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
@@ -121,7 +121,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
@@ -145,7 +145,7 @@ http {
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}
diff --git a/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
index eb67c0f5..6762e947 100644
--- a/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy-self-signed-ssl/mariadb/fpm/web/nginx.conf
@@ -94,7 +94,7 @@ http {
#pagespeed off;
location / {
- rewrite ^ /index.php$uri;
+ rewrite ^ /index.php$request_uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
@@ -126,7 +126,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
@@ -150,7 +150,7 @@ http {
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}
diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
index eb67c0f5..6762e947 100644
--- a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm/web/nginx.conf
@@ -94,7 +94,7 @@ http {
#pagespeed off;
location / {
- rewrite ^ /index.php$uri;
+ rewrite ^ /index.php$request_uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
@@ -126,7 +126,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
@@ -150,7 +150,7 @@ http {
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}
diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
index eb67c0f5..6762e947 100644
--- a/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf
@@ -94,7 +94,7 @@ http {
#pagespeed off;
location / {
- rewrite ^ /index.php$uri;
+ rewrite ^ /index.php$request_uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
@@ -126,7 +126,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
@@ -150,7 +150,7 @@ http {
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}
diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
index eb67c0f5..6762e947 100644
--- a/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
+++ b/.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf
@@ -94,7 +94,7 @@ http {
#pagespeed off;
location / {
- rewrite ^ /index.php$uri;
+ rewrite ^ /index.php$request_uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
@@ -126,7 +126,7 @@ http {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ \.(?:css|js|woff|svg|gif)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
@@ -150,7 +150,7 @@ http {
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
- try_files $uri /index.php$uri$is_args$args;
+ try_files $uri /index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}