Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revision
code:dokuwiki [2015/10/08 00:02]
::ffff:91.102.105.119
code:dokuwiki [2015/10/08 00:13]
::ffff:91.102.105.119
Line 78: Line 78:
 ==== php-fpm ==== ==== php-fpm ====
  
 +<file nginx /etc/nginx/sites-available-notomorrow.de>
 +client_max_body_size 50m;
 +fastcgi_read_timeout 180;
 +         
 +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> <file php /etc/php/fpm/pool.d/notomorrow.de.conf>
 [notomorrow.de] [notomorrow.de]

Log In