mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #467 from nextcloud/revert-466-nginx_update
Revert "Update Nginx documentation"
This commit is contained in:
commit
09a0fa2565
@ -142,7 +142,7 @@ webroot of your nginx installation. In this example it is
|
||||
# Make sure it is BELOW the PHP block
|
||||
location ~* \.(?:css|js|woff|svg|gif)$ {
|
||||
try_files $uri /index.php$uri$is_args$args;
|
||||
add_header Cache-Control "public, max-age=15778463";
|
||||
add_header Cache-Control "public, max-age=7200";
|
||||
# Add headers to serve security related headers (It is intended to
|
||||
# have those duplicated to the ones above)
|
||||
# Before enabling Strict-Transport-Security headers please read into
|
||||
@ -164,7 +164,7 @@ webroot of your nginx installation. In this example it is
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ~* \.(?:html|png)$ {
|
||||
location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ {
|
||||
try_files $uri /index.php$uri$is_args$args;
|
||||
# Optional: Don't log access to other assets
|
||||
access_log off;
|
||||
@ -286,7 +286,7 @@ your nginx installation.
|
||||
# Make sure it is BELOW the PHP block
|
||||
location ~* \.(?:css|js|woff|svg|gif)$ {
|
||||
try_files $uri /nextcloud/index.php$uri$is_args$args;
|
||||
add_header Cache-Control "public, max-age=15778463";
|
||||
add_header Cache-Control "public, max-age=7200";
|
||||
# Add headers to serve security related headers (It is intended
|
||||
# to have those duplicated to the ones above)
|
||||
# Before enabling Strict-Transport-Security headers please read
|
||||
@ -302,7 +302,7 @@ your nginx installation.
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ~* \.(?:html|png)$ {
|
||||
location ~* \.(?:png|html|ttf|ico|jpg|jpeg)$ {
|
||||
try_files $uri /nextcloud/index.php$uri$is_args$args;
|
||||
# Optional: Don't log access to other assets
|
||||
access_log off;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user