Skip to content

Commit

Permalink
Use $request_uri instead of $uri in nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Geissler committed Jun 25, 2018
1 parent 87cd0a6 commit d762703
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions admin_manual/installation/nginx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ webroot of your nginx installation. In this example it is
#pagespeed off;
location / {
rewrite ^ /index.php$uri;
rewrite ^ /index.php$request_uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
Expand Down Expand Up @@ -143,7 +143,7 @@ webroot of your nginx installation. In this example it is
# 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)
Expand All @@ -166,7 +166,7 @@ webroot of your nginx installation. In this example it is
}
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;
}
Expand Down Expand Up @@ -255,7 +255,7 @@ your nginx installation.
#pagespeed off;
location /nextcloud {
rewrite ^ /nextcloud/index.php$uri;
rewrite ^ /nextcloud/index.php$request_uri;
}
location ~ ^/nextcloud/(?:build|tests|config|lib|3rdparty|templates|data)/ {
Expand Down Expand Up @@ -287,7 +287,7 @@ your nginx installation.
# 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 /nextcloud/index.php$uri$is_args$args;
try_files $uri /nextcloud/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)
Expand All @@ -305,7 +305,7 @@ your nginx installation.
}
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
try_files $uri /nextcloud/index.php$uri$is_args$args;
try_files $uri /nextcloud/index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}
Expand Down

0 comments on commit d762703

Please sign in to comment.