-/var/log/php7.0-fpm.log {
+/var/log/php7.0-fpm.log /var/log/php7.0-fpm/*.log {
rotate 12
weekly
+ minsize 1M
missingok
notifempty
compress
server_tokens off;
gzip on;
- keepalive_timeout 600;
+ # keepalive_timeout 600;
+ keepalive_timeout 10;
sendfile on;
client_max_body_size 12m;
}
include /etc/nginx/conf.d/*.conf;
+ include /etc/nginx/sites-enabled/*;
}
}
# pass PHP scripts to FastCGI server
- #
- #location ~ \.php$ {
- # include snippets/fastcgi-php.conf;
- #
- # # With php-fpm (or other unix sockets):
- # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
+
+ location ~ \.php$ {
+ include snippets/fastcgi-php.conf;
+
+ # With php-fpm (or other unix sockets):
+ fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
- #}
+ }
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
- #
- #location ~ /\.ht {
- # deny all;
- #}
+
+ location ~ /\.ht {
+ deny all;
+ }
}
# phpmyadmin
-location /phpmyadmin {
+location ~ ^/phpmyadmin {
alias /usr/share/phpmyadmin;
index index.php;
}
location ~ ^/mail { rewrite ^ https://$host$request_uri?; }
location ~* ^/sogo { rewrite ^ https://$host/SOGo; }
location ~ ^/iredadmin { rewrite ^ https://$host$request_uri?; }
+
+location ~ ^/phpmyadmin {
+ rewrite ^ https://$host$request_uri?;
+}
; - the global prefix if it's been set (-p argument)
; - /usr otherwise
include=/etc/php/7.0/fpm/pool.d/*.conf
+
+; vim: filetype=dosini
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
-post_max_size = 8M
+post_max_size = 25M
; Automatically add files before PHP document.
; http://php.net/auto-prepend-file
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://php.net/cgi.fix-pathinfo
;cgi.fix_pathinfo=1
+cgi.fix_pathinfo=0
; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
; of the web tree and people will not be able to circumvent .htaccess security.
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
-upload_max_filesize = 2M
+upload_max_filesize = 25M
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
+date.timezone = 'Europe/Berlin'
; http://php.net/date.default-latitude
;date.default_latitude = 31.7667