|
|
|
@ -11,6 +11,14 @@ server {
@@ -11,6 +11,14 @@ server {
|
|
|
|
|
root /var/www/machete/www; |
|
|
|
|
index index.php index.html; |
|
|
|
|
|
|
|
|
|
location ~ .*\.(gif|jpg|jpeg|png|webp|bmp|swf|js|css|ico|mp4|ts)$ { |
|
|
|
|
expires 30d; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
gzip on; |
|
|
|
|
gzip_comp_level 4; |
|
|
|
|
gzip_types text/css text/xml application/x-javascript application/atom+xml application/rss+xml application/x-shockwave-flash; |
|
|
|
|
|
|
|
|
|
location / { |
|
|
|
|
try_files $uri $uri/ /index.php?$args; |
|
|
|
|
} |
|
|
|
|