moved section
This commit is contained in:
@@ -1,9 +1,3 @@
|
|||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80;
|
|
||||||
server_name localhost;
|
|
||||||
|
|
||||||
# Check if client is capable of handling webp
|
# Check if client is capable of handling webp
|
||||||
map $http_accept $webp_suffix {
|
map $http_accept $webp_suffix {
|
||||||
default "";
|
default "";
|
||||||
@@ -15,6 +9,11 @@ server {
|
|||||||
~*^/(images)/(.+)\.(jpe?g|png)$ /$1/$2;
|
~*^/(images)/(.+)\.(jpe?g|png)$ /$1/$2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
location ~* ^/.+\.(jpg|jpeg|png)$ {
|
location ~* ^/.+\.(jpg|jpeg|png)$ {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
# BEGIN Browser Caching of WebP
|
# BEGIN Browser Caching of WebP
|
||||||
|
|||||||
Reference in New Issue
Block a user