Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Both sides next revision
code:dokuwiki [2014/08/15 02:00]
::ffff:83.133.179.144 created
code:dokuwiki [2015/10/08 00:14]
::ffff:91.102.105.119
Line 76: Line 76:
 </file> </file>
    
-==== links ==== +==== php-fpm ====
-  * [[php-fpm]]+
  
 +<file nginx /etc/nginx/sites-available-notomorrow.de>
 +client_max_body_size 50m;
 +fastcgi_read_timeout 180;
 +   
 +## needed because of the reverse proxy
 +## x_forwarded port ans stuff is set there
 +      
 +map $http_x_forwarded_port $external_port { 
 +    default $http_x_forwarded_port; 
 +    '' $server_port; 
 +}        
 +map $http_x_forwarded_proto $external_proto { 
 +    '' $https; 
 +    'http' ''; 
 +    'https' 'on'; 
 +}        
 +         
 +server { 
 +        listen [::]:80 default;
 +        server_name notomorrow.de *.notomorrow.de;
 +                                                                                                                                                 
 +        error_log  /var/log/nginx/notomorrow.error.log;
 +        root   /srv/dokuwiki;
 +        index  index.php index.html;
 +         
 +        include        conf.d/status.inc;
 +        include        conf.d/public.inc;
 +        include        conf.d/dokuwiki.inc;
 +        include        conf.d/notomorrow.php.inc;
 +
 +</file>
 +<file nginx /etc/nginx/conf.d/php.inc>
 +location ~ \.php$ {
 +  fastcgi_split_path_info ^(.+\.php)(/.+)$;
 +  fastcgi_index  index.php;              
 +        
 +  #fastcgi_param  PATH_INFO          $fastcgi_path_info;
 +  #fastcgi_param  PATH_TRANSLATED    $document_root$fastcgi_path_info;
 +  #fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
 +        
 +  include fastcgi_params;                
 +        
 +  fastcgi_param  SERVER_PORT          $external_port;
 +  fastcgi_param  HTTPS                $external_proto; 
 +        
 +  fastcgi_intercept_errors on;           
 +  fastcgi_pass unix:/tmp/php-fpm-notomorrow.de.sock;
 +          
 +}    
 +</file>
 +<file php /etc/php/fpm/pool.d/notomorrow.de.conf>
 +[notomorrow.de]
 +
 +user = notomorrow-de
 +group = notomorrow-de
 +listen.owner = notomorrow-de
 +listen.group = notomorrow-de
 +listen = '/tmp/php-fpm-notomorrow.de.sock'
 +pm = dynamic
 +pm.max_children = 5
 +pm.start_servers = 2
 +pm.min_spare_servers = 1
 +pm.max_spare_servers = 3
 +
 +</file>

Log In