File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
etc/nginx/sites-available Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,27 @@ server {
23
23
rewrite ^/(.*)$ /app.php/$1;
24
24
}
25
25
26
- location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
26
+ # Uncomment only if you're *not* using LiipImagineBundle or similar image generation tool
27
+ # This context will mess with it and cache 404 for not yet generated images
28
+ # location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
29
+ # expires 18h;
30
+ # add_header Cache-Control "public, must-revalidate, proxy-revalidate";
31
+ # }
32
+
33
+ location ~* \.(?:css|js)$ {
34
+ # You need to recompile nginx to use gzip_static
35
+ # See http://wiki.nginx.org/HttpGzipStaticModule
36
+ # gzip_static on;
37
+
27
38
expires 18h;
28
- add_header Cache-Control "public , must-revalidate, proxy-revalidate";
39
+ add_header Cache-Control "publi , must-revalidate, proxy-revalidate";
29
40
}
30
41
31
42
location ~ \.php {
32
- limit_conn default 50 ;
43
+ limit_conn default 30 ;
33
44
34
- try_files $uri =404;
45
+ # Messes up with SEF URIs, not sure it's even needed
46
+ # try_files $uri =404;
35
47
36
48
fastcgi_index app.php;
37
49
fastcgi_pass 127.0.0.1:9000;
You can’t perform that action at this time.
0 commit comments