]> Frank Brehm's Git Trees - config/sarah/etc.git/commitdiff
daily autocommit
authorFrank Brehm <frank@brehm-online.com>
Fri, 7 Dec 2018 05:43:38 +0000 (06:43 +0100)
committerFrank Brehm <frank@brehm-online.com>
Fri, 7 Dec 2018 05:43:38 +0000 (06:43 +0100)
logrotate.d/php7.0-fpm
nginx/nginx.conf
nginx/sites-available/default
nginx/templates/phpmyadmin.tmpl
nginx/templates/redirect_to_https.tmpl
php/7.0/fpm/php-fpm.conf
php/7.0/fpm/php.ini

index cbc1e69cde12046c816b4b52581da4f4521a0131..dcf5a6e0fa015a9da7f3a84571f10bd3583dd695 100644 (file)
@@ -1,6 +1,7 @@
-/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
index 6d55eb21f5a4eb1966445a7db69108b388e24797..901e1565900aa42741a4fbd17027233f924f6c9d 100644 (file)
@@ -17,7 +17,8 @@ http {
     server_tokens off;
 
     gzip on;
-    keepalive_timeout 600;
+    # keepalive_timeout 600;
+    keepalive_timeout 10;
     sendfile on;
 
     client_max_body_size 12m;
@@ -31,4 +32,5 @@ http {
     }
 
     include /etc/nginx/conf.d/*.conf;
+    include /etc/nginx/sites-enabled/*;
 }
index c841ceb51e5d6b1e38e6e3bbf9d3220400de1b9e..10cff2ed48fa7afa5bb28c1e54a3311f18f7c867 100644 (file)
@@ -52,22 +52,22 @@ server {
        }
 
        # 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;
+       }
 }
 
 
index 228199b89da19320a26a2236391f62e4d9397c83..e123f04680f98214250404668ac2061db65e583a 100644 (file)
@@ -1,5 +1,5 @@
 # phpmyadmin
-location /phpmyadmin {
+location ~ ^/phpmyadmin {
     alias   /usr/share/phpmyadmin;
     index   index.php;
 }
index be3d9b4c29c5636724c94c5895062eb0c47b512f..487df53ed7325ed13ce0d06c84105454677e60ed 100644 (file)
@@ -2,3 +2,7 @@
 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?;
+}
index afce1d226bed78795510f3c9ea49c082056f4b37..226e2a8880ee67ba1b7b855b7e049c92c333cd43 100644 (file)
@@ -123,3 +123,5 @@ error_log = /var/log/php7.0-fpm.log
 ;  - the global prefix if it's been set (-p argument)
 ;  - /usr otherwise
 include=/etc/php/7.0/fpm/pool.d/*.conf
+
+; vim: filetype=dosini
index fb7cde385650a7da3e9aadd9a28f160fa7df7a5f..811a94b11b8d895d6243fe727832036b0491e787 100644 (file)
@@ -653,7 +653,7 @@ auto_globals_jit = On
 ; 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
@@ -758,6 +758,7 @@ enable_dl = Off
 ; 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.
@@ -806,7 +807,7 @@ file_uploads = On
 
 ; 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
@@ -922,6 +923,7 @@ cli_server.color = On
 ; 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