mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:30:11 +01:00
improved nginx config sample
This commit is contained in:
parent
196c6d272f
commit
34db7522d2
@ -12,6 +12,10 @@ server {
|
||||
access_log /var/log/nginx/piler.yourdomain.com-access.log main;
|
||||
error_log /var/log/nginx/piler.yourdomain.com-error.log;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain application/xml text/css;
|
||||
gzip_vary on;
|
||||
|
||||
location / {
|
||||
index index.php index.html;
|
||||
}
|
||||
@ -34,6 +38,9 @@ server {
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location ~* \.(ico|css|js|gif|jpe?g|png)$ {
|
||||
expires 2w;
|
||||
}
|
||||
|
||||
rewrite /search.php /index.php?route=search/search&type=simple;
|
||||
rewrite /advanced.php /index.php?route=search/search&type=advanced;
|
||||
|
Loading…
Reference in New Issue
Block a user